Commit b4bf33fc authored by chtito's avatar chtito

right sql date format setting

parent d1c45859
...@@ -76,7 +76,7 @@ class Doctrine_Connection_Oracle extends Doctrine_Connection ...@@ -76,7 +76,7 @@ class Doctrine_Connection_Oracle extends Doctrine_Connection
*/ */
public function setDateFormat($format = 'YYYY-MM-DD HH24:MI:SS') 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 * Adds an driver-specific LIMIT clause to the query
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment