added a setDateFormat method (primarily intended for the Oracle connection)
This commit is contained in:
parent
cb924af310
commit
d1c45859c6
@ -480,6 +480,16 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun
|
|||||||
public function setCharset($charset)
|
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
|
* fetchAll
|
||||||
*
|
*
|
||||||
|
@ -69,6 +69,14 @@ class Doctrine_Connection_Oracle extends Doctrine_Connection
|
|||||||
$this->options['result_prefetching'] = false;
|
$this->options['result_prefetching'] = false;
|
||||||
*/
|
*/
|
||||||
parent::__construct($manager, $adapter);
|
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
|
* Adds an driver-specific LIMIT clause to the query
|
||||||
|
Loading…
x
Reference in New Issue
Block a user