From cea5cf384be0a628ffb26040fcfb5235107c7573 Mon Sep 17 00:00:00 2001 From: zYne Date: Sun, 18 Feb 2007 20:50:50 +0000 Subject: [PATCH] added now() support for pgsql driver --- lib/Doctrine/Expression/Pgsql.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/Doctrine/Expression/Pgsql.php b/lib/Doctrine/Expression/Pgsql.php index 68c1bc56e..fd8d01b2e 100644 --- a/lib/Doctrine/Expression/Pgsql.php +++ b/lib/Doctrine/Expression/Pgsql.php @@ -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 *