From b4bf33fc8c9b0d3af1bad0bf3afb6fb7abd4b370 Mon Sep 17 00:00:00 2001 From: chtito Date: Sat, 20 Jan 2007 11:51:32 +0000 Subject: [PATCH] right sql date format setting --- lib/Doctrine/Connection/Oracle.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/Connection/Oracle.php b/lib/Doctrine/Connection/Oracle.php index 61fcfa7b2..0a47b7719 100644 --- a/lib/Doctrine/Connection/Oracle.php +++ b/lib/Doctrine/Connection/Oracle.php @@ -76,7 +76,7 @@ class Doctrine_Connection_Oracle extends Doctrine_Connection */ public function setDateFormat($format = 'YYYY-MM-DD HH24:MI:SS') { - $this->exec('ALTER SESSION NLS_DATE_FORMAT "'.$format.'";'); + $this->exec('ALTER SESSION SET NLS_DATE_FORMAT "'.$format.'";'); } /** * Adds an driver-specific LIMIT clause to the query