mirror of
https://github.com/PostgreSQL-For-Wordpress/postgresql-for-wordpress.git
synced 2025-07-29 09:17:14 +02:00
Corrected the pattern for matching UNIX_TIMESTAMP(....)
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@424297 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
@ -153,7 +153,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