From 5b7c69f978a79c5f933003d920e43fed630f80d6 Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Fri, 11 May 2012 19:45:24 +0000 Subject: [PATCH] Change sqlite escaping of identifier to double quote. Fixing some issues --- lib/db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' ){ -- 2.39.5