From 738e2c5c3c40e8dfcb67962f4df5840bffec9b08 Mon Sep 17 00:00:00 2001 From: hawk__ Date: Fri, 9 Apr 2010 00:09:06 +0000 Subject: [PATCH] Fix an inadequate explode delimiter git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@226896 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- pg4wp/driver_pgsql.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pg4wp/driver_pgsql.php b/pg4wp/driver_pgsql.php index 6acf4e1..c265d60 100644 --- a/pg4wp/driver_pgsql.php +++ b/pg4wp/driver_pgsql.php @@ -238,9 +238,9 @@ if( preg_match('/^.{1}/us',$sql,$ar) != 1) $sql = utf8_encode($sql); - // This will avoid modifications to anything following 'VALUES(' - list($sql,$end) = explode( ' VALUES(', $sql, 2); - $end = ' VALUES('.$end; + // This will avoid modifications to anything following 'VALUES' + list($sql,$end) = explode( ' VALUES', $sql, 2); + $end = ' VALUES'.$end; } // INSERT elseif( 0 === strpos( $sql, 'DELETE' )) {