REGEX pattern for UNIX_TIMESTAMP was not closed ... oops
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@195521 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
@@ -152,7 +152,7 @@
|
||||
$sql = preg_replace( $pattern, '($1 + $2)', $sql);
|
||||
|
||||
// UNIX_TIMESTAMP in MYSQL returns an integer
|
||||
$pattern = '/UNIX_TIMESTAMP\(([^\)])\)';
|
||||
$pattern = '/UNIX_TIMESTAMP\(([^\)])\)/';
|
||||
$sql = preg_replace( $pattern, 'ROUND(DATE_PART(\'epoch\',$1))', $sql);
|
||||
|
||||
$date_funcs = array(
|
||||
|
Reference in New Issue
Block a user