1
0
mirror of synced 2025-01-31 12:32:59 +03:00

right sql date format setting

This commit is contained in:
chtito 2007-01-20 11:51:32 +00:00
parent d1c45859c6
commit b4bf33fc8c

View File

@ -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