Fix an inadequate explode delimiter

git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@226896 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
hawk__
2010-04-09 00:09:06 +00:00
parent 394f86a3e8
commit 738e2c5c3c

View File

@@ -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' ))
{