fix error

please commit only code into the stable branch which is tested and fully working
This commit is contained in:
Frank Karlitschek 2011-11-21 17:15:20 +01:00
parent 7261f0f358
commit 5463fa2420

View file

@ -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' ){