1
0
mirror of synced 2025-01-06 00:57:10 +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); return join(' || ' , $cols);
} }
/**
* Returns the SQL string to return the current system date and time.
*
* @return string
*/
public function now()
{
return 'LOCALTIMESTAMP(0)';
}
/** /**
* regexp * regexp
* *