[wp-trac] [WordPress Trac] #44973: Issues with $wpdb->get_col_info

WordPress Trac noreply at wordpress.org
Thu Sep 20 21:37:49 UTC 2018


#44973: Issues with $wpdb->get_col_info
--------------------------+-----------------------------
 Reporter:  drocks13      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.9.8
 Severity:  normal        |   Keywords:  needs-testing
  Focuses:                |
--------------------------+-----------------------------
 When attempting to get certain column information using
 $wpdb->get_col_info I get the following error notice:

 Notice: Undefined property: stdClass::$primary_key in ..../wp-includes/wp-
 db.php on line 3211

 Similar for 'not_null' and several of the other options. Name, type, etc.
 work just fine. It looks like not all the properties are set for all the
 options listed in the docs -
 https://codex.wordpress.org/Class_Reference/wpdb#Getting_Column_Information

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44973>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list