]> granicus.if.org Git - pdns/commitdiff
fix up ssqlite internal 'escape' function - which was not used.
authorBert Hubert <bert.hubert@netherlabs.nl>
Mon, 21 Mar 2011 20:46:41 +0000 (20:46 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Mon, 21 Mar 2011 20:46:41 +0000 (20:46 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2074 d19b8d6e-7fed-0310-83ef-9ca221ded41b

modules/gsqlitebackend/ssqlite.cc

index 7a3720ae182d6476dae245decf8d66f1342a282f..178d68cd379e396c882e460ac6d2eccb1f7d03b8 100644 (file)
@@ -143,8 +143,8 @@ std::string SSQLite::escape( const std::string & name)
   
     for( std::string::const_iterator i = name.begin(); i != name.end(); ++i ) 
     {
-      if( *i == '\'' || *i == '\\' )
-        a += '\\';
+      if( *i == '\'')
+        a += '\'';
         
       a += *i;
     }