]> source.dussan.org Git - nextcloud-server.git/commitdiff
Change sqlite escaping of identifier to double quote. Fixing some issues
authorBrice Maron <brice@bmaron.net>
Fri, 11 May 2012 19:45:24 +0000 (19:45 +0000)
committerBrice Maron <brice@bmaron.net>
Fri, 11 May 2012 19:45:53 +0000 (19:45 +0000)
lib/db.php

index 2f74cc6dd95c66222f949f90869cfde38aaa5bba..9899f30e75c45eb13b23860f174b74c56a7e929a 100644 (file)
@@ -444,7 +444,7 @@ class OC_DB {
                
                // differences in escaping of table names ('`' for mysql) and getting the current timestamp
                if( $type == 'sqlite' || $type == 'sqlite3' ){
-                       $query = str_replace( '`', '\'', $query );
+                       $query = str_replace( '`', '"', $query );
                        $query = str_replace( 'NOW()', 'datetime(\'now\')', $query );
                        $query = str_replace( 'now()', 'datetime(\'now\')', $query );
                }elseif( $type == 'mysql' ){