The required handling code wasn't loaded in some cases when a plugin created his own tables in the database

git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@418968 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
hawk__
2011-08-03 21:30:21 +00:00
parent 725baa8cfb
commit 1a05e62dac
3 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -148,7 +148,7 @@ WHERE pg_class.relname='$table_name' AND pg_attribute.attnum>=1 AND NOT pg_attri
elseif( 0 === strpos($sql, 'CREATE TABLE'))
{
$logto = 'CREATE';
$pattern = '/CREATE TABLE (\w+)/';
$pattern = '/CREATE TABLE [`]?(\w+)[`]?/';
preg_match($pattern, $sql, $matches);
$table = $matches[1];