Commit cea5cf38 authored by zYne's avatar zYne

added now() support for pgsql driver

parent 82dbb993
......@@ -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
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment