From 29033b48715560ef47003f170cd489941d20b93b Mon Sep 17 00:00:00 2001 From: hawk__ Date: Mon, 1 Aug 2011 22:42:10 +0000 Subject: [PATCH] Excluded converting "NULLIF", patch received from Jamie Strachan git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@418089 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- pg4wp/driver_pgsql.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pg4wp/driver_pgsql.php b/pg4wp/driver_pgsql.php index 91012f6..a3afe9b 100644 --- a/pg4wp/driver_pgsql.php +++ b/pg4wp/driver_pgsql.php @@ -156,8 +156,8 @@ $curryear = date( 'Y'); $sql = str_replace( 'FROM \''.$curryear, 'FROM TIMESTAMP \''.$curryear, $sql); - // MySQL 'IF' conversion - $pattern = '/ IF[ ]*\(([^,]+),([^,]+),([^\)]+)\)/'; + // MySQL 'IF' conversion - Note : NULLIF doesn't need to be corrected + $pattern = '/ (?