added now() support for pgsql driver
This commit is contained in:
parent
82dbb99386
commit
cea5cf384b
@ -99,6 +99,15 @@ class Doctrine_Expression_Pgsql extends Doctrine_Expression
|
||||
|
||||
return join(' || ' , $cols);
|
||||
}
|
||||
/**
|
||||
* Returns the SQL string to return the current system date and time.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function now()
|
||||
{
|
||||
return 'LOCALTIMESTAMP(0)';
|
||||
}
|
||||
/**
|
||||
* regexp
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user