1
0
mirror of synced 2024-12-13 22:56:04 +03:00

added now() support for pgsql driver

This commit is contained in:
zYne 2007-02-18 20:50:50 +00:00
parent 82dbb99386
commit cea5cf384b

View File

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