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:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user