From: Brice Maron Date: Fri, 11 May 2012 19:45:24 +0000 (+0000) Subject: Change sqlite escaping of identifier to double quote. Fixing some issues X-Git-Tag: v4.0.0RC~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5b7c69f978a79c5f933003d920e43fed630f80d6;p=nextcloud-server.git Change sqlite escaping of identifier to double quote. Fixing some issues --- diff --git a/lib/db.php b/lib/db.php index 2f74cc6dd95..9899f30e75c 100644 --- a/lib/db.php +++ b/lib/db.php @@ -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' ){