From 08894953825896037209c5d72a3c8bb835c59269 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 19 Jan 2011 00:09:08 +0100 Subject: [PATCH] Fix DB adapter detection. --- kronolith/lib/Driver/Sql.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kronolith/lib/Driver/Sql.php b/kronolith/lib/Driver/Sql.php index bc5c0581b..d92a15875 100644 --- a/kronolith/lib/Driver/Sql.php +++ b/kronolith/lib/Driver/Sql.php @@ -868,13 +868,13 @@ class Kronolith_Driver_Sql extends Kronolith_Driver /* Handle any database specific initialization code to run. */ try { - switch ($this->_db->dbsyntax) { - case 'oci8': + switch ($this->_db->adapterName()) { + case 'Oracle': $query = "ALTER SESSION SET NLS_DATE_FORMAT = 'YYYY-MM-DD HH24:MI:SS'"; $this->_db->execute($query); break; - case 'pgsql': + case 'PDO_PostgreSQL': $query = "SET datestyle TO 'iso'"; $this->_db->execute($query); break; -- 2.11.0