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 = '/ (?