WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 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:
Milestone: Priority: normal
Severity: normal Version:
Component: Database Keywords:
Focuses: administration Cc:

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)

#1 @netweb
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Thanks Magenta Cuda, though this is a duplicate.

Duplicate: #32029

Note: See TracTickets for help on using tickets.