Changeset 1342
- Timestamp:
- 03/29/09 22:00:12 (17 months ago)
- Location:
- trunk/pdns
- Files:
-
- 5 modified
-
modules/gsqlite3backend/gsqlite3backend.cc (modified) (2 diffs)
-
modules/gsqlite3backend/gsqlite3backend.hh (modified) (1 diff)
-
modules/gsqlitebackend/gsqlitebackend.cc (modified) (2 diffs)
-
modules/gsqlitebackend/gsqlitebackend.hh (modified) (1 diff)
-
pdns/backends/gsql/gsqlbackend.hh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/modules/gsqlite3backend/gsqlite3backend.cc
r942 r1342 20 20 #include "ssqlite3.hh" 21 21 #include "gsqlite3backend.hh" 22 22 #include <boost/algorithm/string.hpp> 23 23 24 24 // Connects to the database. … … 101 101 }; 102 102 103 string gSQLite3Backend::sqlEscape(const string &name) 104 { 105 return boost::replace_all_copy(name, "'", "''"); 106 } 107 103 108 104 109 //! Reports the backendloader to the UeberBackend. -
trunk/pdns/modules/gsqlite3backend/gsqlite3backend.hh
r942 r1342 19 19 //! Constructs the backend, throws an exception if it failed.. 20 20 gSQLite3Backend( const std::string & mode, const std::string & suffix ); 21 21 virtual string sqlEscape(const string &name); 22 22 }; 23 23 -
trunk/pdns/modules/gsqlitebackend/gsqlitebackend.cc
r255 r1342 20 20 #include "ssqlite.hh" 21 21 #include "gsqlitebackend.hh" 22 22 #include <boost/algorithm/string.hpp> 23 23 24 24 // Connects to the database. … … 101 101 }; 102 102 103 string gSQLiteBackend::sqlEscape(const string &name) 104 { 105 return boost::replace_all_copy(name, "'", "''"); 106 } 107 103 108 104 109 //! Reports the backendloader to the UeberBackend. -
trunk/pdns/modules/gsqlitebackend/gsqlitebackend.hh
r187 r1342 19 19 //! Constructs the backend, throws an exception if it failed.. 20 20 gSQLiteBackend( const std::string & mode, const std::string & suffix ); 21 21 virtual string sqlEscape(const string &name); 22 22 }; 23 23 -
trunk/pdns/pdns/backends/gsql/gsqlbackend.hh
r477 r1342 22 22 } 23 23 24 string sqlEscape(const string &name);24 virtual string sqlEscape(const string &name); 25 25 void lookup(const QType &, const string &qdomain, DNSPacket *p=0, int zoneId=-1); 26 26 bool list(const string &target, int domain_id);