diff options
author | Brice Maron <brice@bmaron.net> | 2012-05-11 19:45:24 +0000 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2012-05-11 19:45:53 +0000 |
commit | 5b7c69f978a79c5f933003d920e43fed630f80d6 (patch) | |
tree | f7916522564c5d351e3c58ef3c82e5b24505eaa5 | |
parent | 919681f3e6a075f45c667bef0f9b44a4db0a37f1 (diff) | |
download | nextcloud-server-5b7c69f978a79c5f933003d920e43fed630f80d6.tar.gz nextcloud-server-5b7c69f978a79c5f933003d920e43fed630f80d6.zip |
Change sqlite escaping of identifier to double quote. Fixing some issues
-rw-r--r-- | lib/db.php | 2 |
1 files changed, 1 insertions, 1 deletions
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' ){ |