Opened 11 years ago
Closed 11 years ago
#32033 closed defect (bug) (duplicate)
version 4.2-RC2: $wpdb->get_col( "SHOW TABLES LIKE ..." ) gives database error
| Reported by: | Magenta Cuda | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Database | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | administration |
Description
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.
Change History (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thanks Magenta Cuda, though this is a duplicate.
Duplicate: #32029