mirror of
https://github.com/PostgreSQL-For-Wordpress/postgresql-for-wordpress.git
synced 2026-01-26 16:32:19 +01:00
Rework SHOW COLUMNS/INDEX/TABLE support
Wordpress 4 makes use of SHOW COLUMNS and SHOW TABLES in addition to SHOW INDEX, both with and without the FULL modifier. Implement support for these statements using queries against INFORMATION_SCHEMA. Some of these queries use lower-case versions of these statements, such as "show tables like 'wp_flag_pictures'", so we make sure to recognize both the upper- and lower-case versions. This is based, in part, on the work of raptorz in the support forum at https://wordpress.org/support/topic/upgrade-to-wp421-fail?replies=3#post-6886123 Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
This commit is contained in:
@@ -411,7 +411,7 @@
|
||||
$sql = "SET NAMES 'utf8'";
|
||||
}
|
||||
// Load up upgrade and install functions as required
|
||||
$begin = substr( $sql, 0, 3);
|
||||
$begin = strtoupper( substr( $sql, 0, 3));
|
||||
$search = array( 'SHO', 'ALT', 'DES', 'CRE', 'DRO');
|
||||
if( in_array($begin, $search))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user