Added support for "INTERVAL 15 DAY" found in Akismet 2.2.7

git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@191320 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
hawk__
2010-01-08 00:24:24 +00:00
parent eb1190fe74
commit bd7e006439
2 changed files with 4 additions and 0 deletions

View File

@@ -164,6 +164,8 @@
$sql = preg_replace($pattern, 'LIMIT $2 OFFSET $1', $sql);
$sql = str_replace('INTERVAL 120 MINUTE', "'120 minutes'::interval", $sql);
// The following handles a new "INTERVAL" call in Akismet 2.2.7
$sql = str_replace('INTERVAL 15 DAY', "'15 days'::interval", $sql);
$pattern = '/DATE_ADD[ ]*\(([^,]+),([^\)]+)\)/';
$sql = preg_replace( $pattern, '($1 + $2)', $sql);

View File

@@ -50,6 +50,8 @@ There is no screenshot for this plugin
== Changelog ==
* Added support for "INTERVAL 15 DAY" found in Akismet 2.2.7
= 1.0.2 =
* Updated support for plugin zdMultilang 1.2.5
* Got rid of some remaining hardcoded table prefix