Reduced backick removal collision risks

git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@226906 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
hawk__
2010-04-09 00:58:19 +00:00
parent 803e38aa31
commit e8b97235bd

View File

@@ -179,7 +179,7 @@
$sql = preg_replace( $pattern, ' "$1" =', $sql);
// For correct bactick removal
$pattern = '/[ ]*`([^`]+)`[ ]*=/';
$pattern = '/[ ]*`([^` ]+)`[ ]*=/';
$sql = preg_replace( $pattern, ' $1 =', $sql);
// WP 2.6.1 => 2.8 upgrade, removes a PostgreSQL error but there are some remaining