1
0
mirror of synced 2025-01-18 22:41:43 +03:00

added a setDateFormat method (primarily intended for the Oracle connection)

This commit is contained in:
chtito 2007-01-20 11:44:41 +00:00
parent cb924af310
commit d1c45859c6
2 changed files with 18 additions and 0 deletions

View File

@ -480,6 +480,16 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun
public function setCharset($charset)
{
}
/**
* Set the date/time format for the current connection
*
* @param string time format
*
* @return void
*/
public function setDateFormat($format = null)
{
}
/**
* fetchAll
*

View File

@ -69,6 +69,14 @@ class Doctrine_Connection_Oracle extends Doctrine_Connection
$this->options['result_prefetching'] = false;
*/
parent::__construct($manager, $adapter);
}
/**
* Sets up the date/time format
*
*/
public function setDateFormat($format = 'YYYY-MM-DD HH24:MI:SS')
{
$this->exec('ALTER SESSION NLS_DATE_FORMAT "'.$format.'";');
}
/**
* Adds an driver-specific LIMIT clause to the query