[wp-trac] [WordPress Trac] #32029: WP_Error( 'wpdb_get_table_charset_failure' ) thrown when doing "SHOW TABLES LIKE %s"

WordPress Trac noreply at wordpress.org
Tue Apr 21 04:23:35 UTC 2015


#32029: WP_Error( 'wpdb_get_table_charset_failure' ) thrown when doing "SHOW TABLES
LIKE %s"
---------------------------+--------------------
 Reporter:  datafeedr.com  |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  high           |   Milestone:  4.2
Component:  Database       |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:
---------------------------+--------------------

Comment (by nacin):

 Replying to [comment:5 valendesigns]:
 > {{{
 > $table_name = $wpdb->prefix . 'dfrpswc_temp_post_ids_by_set_id';
 > if ( ! in_array( $table_name, $wpdb->tables() ) ) {
 >       dfrpswc_create_table();
 > }
 > }}}

 Nope. `$wpdb->tables()` isn't based on the database. This will never
 return true.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32029#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list