diff --git a/lib/db.php b/lib/db.php index a99b2556740..7ba08cb48d9 100644 --- a/lib/db.php +++ b/lib/db.php @@ -313,7 +313,7 @@ class OC_DB { $query = str_replace( 'now()', self::$DBConnection->now(), $query ); // differences in escaping of table names ('`' for mysql) and getting the current timestamp - if( $type == 'sqlite' || $type == 'sqlite3' ){ + if( $CONFIG_DBTYPE == 'sqlite' || $CONFIG_DBTYPE == 'sqlite3' ){ $query = str_replace( '`', '\'', $query ); } elseif( $CONFIG_DBTYPE == 'pgsql' ){