git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@418100 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
@@ -277,6 +277,12 @@
|
|||||||
$logto = 'SHOWTABLES';
|
$logto = 'SHOWTABLES';
|
||||||
$sql = 'SELECT tablename FROM pg_tables WHERE schemaname = \'public\';';
|
$sql = 'SELECT tablename FROM pg_tables WHERE schemaname = \'public\';';
|
||||||
}
|
}
|
||||||
|
// Rewriting optimize table
|
||||||
|
elseif( 0 === strpos($sql, 'OPTIMIZE TABLE'))
|
||||||
|
{
|
||||||
|
$logto = 'OPTIMIZE';
|
||||||
|
$sql = str_replace( 'OPTIMIZE TABLE', 'VACUUM', $sql);
|
||||||
|
}
|
||||||
elseif( defined('WP_INSTALLING') && WP_INSTALLING)
|
elseif( defined('WP_INSTALLING') && WP_INSTALLING)
|
||||||
$sql = pg4wp_installing( $sql, $logto);
|
$sql = pg4wp_installing( $sql, $logto);
|
||||||
|
|
||||||
@@ -293,6 +299,9 @@
|
|||||||
// Remove illegal characters
|
// Remove illegal characters
|
||||||
$sql = str_replace('`', '', $sql);
|
$sql = str_replace('`', '', $sql);
|
||||||
|
|
||||||
|
// Akismet sometimes doesn't write 'comment_ID' with 'ID' in capitals ...
|
||||||
|
$sql = str_replace(' comment_id ', ' comment_ID ', $sql);
|
||||||
|
|
||||||
// Field names with CAPITALS need special handling
|
// Field names with CAPITALS need special handling
|
||||||
if( false !== strpos($sql, 'ID'))
|
if( false !== strpos($sql, 'ID'))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user