Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfixes in SHOW CREATE TABLE and SHOW TABLES (#117)
Fixes a series of crashes encountered when * SHOW TABLES now returns a flat list, not an array of objects – I'm not sure here. It makes `$tables = $wpdb->get_results("SHOW TABLES LIKE '{$prefix}%'", ARRAY_N);` work as expected [here](https://github.com/WordPress/playground-tools/blob/128123e84e25cf0421770f6885c6f26aaf0b05dc/packages/playground/src/playground-db.php#L90-L91), but is the right thing to return, or is this more about correct handling of the fetch mode, like ARRAY_N? * `SHOW tables` isn't all uppercase * There's no table tho SHOW CREATE: `SHOW CREATE TABLE _no_such_table;` * The table identifier passed to SHOW CREATE is quoted: ``` 'SHOW CREATETABLE `_tmp_table`;' ``` This PR makes the [Sandbox site plugin](https://wordpress.org/plugins/playground/) work in Playground cc @bgrgicak @brandonpayton @wojtekn
- Loading branch information