From 5463fa2420380b77e7c809ccc54cab73441069d1 Mon Sep 17 00:00:00 2001 From: Frank Karlitschek Date: Mon, 21 Nov 2011 17:15:20 +0100 Subject: [PATCH] fix error please commit only code into the stable branch which is tested and fully working --- lib/db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' ){