mirror of
https://github.com/PostgreSQL-For-Wordpress/postgresql-for-wordpress.git
synced 2025-07-31 10:17:13 +02:00
Corrected 2 matching that were not accurate enough
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@544607 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
@ -368,7 +368,7 @@
|
||||
$sql = str_replace( 'OPTIMIZE TABLE', 'VACUUM', $sql);
|
||||
}
|
||||
// Handle 'SET NAMES ... COLLATE ...'
|
||||
elseif( false !== strpos($sql, 'COLLATE'))
|
||||
elseif( 0 === strpos($sql, 'SET NAMES') && false !== strpos($sql, 'COLLATE'))
|
||||
{
|
||||
$logto = 'SETNAMES';
|
||||
$sql = "SET NAMES 'utf8'";
|
||||
@ -406,7 +406,7 @@
|
||||
$sql = preg_replace($pattern, '( ID', $sql);
|
||||
$pattern = '/,ID/';
|
||||
$sql = preg_replace($pattern, ', ID', $sql);
|
||||
$pattern = '/[a-zA-Z_]+ID/';
|
||||
$pattern = '/[0-9a-zA-Z_]+ID/';
|
||||
$sql = preg_replace($pattern, '"$0"', $sql);
|
||||
$pattern = '/\.ID/';
|
||||
$sql = preg_replace($pattern, '."ID"', $sql);
|
||||
|
Reference in New Issue
Block a user