sqlite-database-integration icon indicating copy to clipboard operation
sqlite-database-integration copied to clipboard

SHOW COLUMNS FROM table needs correctly named columns in result set.

Open OllieJones opened this issue 3 years ago • 1 comments

Users of SHOW COLUMNS FROM table depend on having resultset columns named Field, Type, Null, Key, Default, and maybe Extra.

OllieJones avatar Mar 22 '23 13:03 OllieJones

Just in case this is missing in the scope of this bug, SHOW COLUMNS FROM should also support LIKE, as in:

$warehouse_table = $wpdb->prefix . "warehouse";
$warehouse_address = $wpdb->get_row("SHOW COLUMNS FROM " . $warehouse_table . " LIKE 'phone_instore'");

batonac avatar Jul 18 '23 20:07 batonac