[wp-trac] [WordPress Trac] #32033: version 4.2-RC2: $wpdb->get_col( "SHOW TABLES LIKE ..." ) gives database error
WordPress Trac
noreply at wordpress.org
Mon Apr 20 23:30:15 UTC 2015
#32033: version 4.2-RC2: $wpdb->get_col( "SHOW TABLES LIKE ..." ) gives database
error
----------------------------+-----------------------------
Reporter: Magenta Cuda | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version:
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
On version 4.2-RC2, I am using
{{{
$wpdb->get_col( "SHOW TABLES LIKE ..." )
}}}
to check for the existence of a table.
For a non existent table this outputs the message
{{{
WordPress database error Table '...' doesn't exist for query SHOW FULL
COLUMNS FROM ...
}}}
Since, this a test for the existence of a table it is valid that the table
doesn't exists. This same code works in the current version 4.1.1.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32033>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list