SHOW TABLE STATUS only shows tables after SHOW CREATE TABLE
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Won't Fix
|
Low
|
Andrew Hutchings | ||
7.0 |
Won't Fix
|
Low
|
Andrew Hutchings |
Bug Description
drizzle> create table t1(id int primary key);
Query OK, 0 rows affected (0 sec)
drizzle> show tables;
+----------------+
| Tables_in_test |
+----------------+
| t1 |
+----------------+
1 row in set (0 sec)
drizzle> show table status;
Empty set (0 sec)
drizzle> show create table t1;
+------
| Table | Create Table |
+------
| t1 | CREATE TABLE `t1` (
`id` int NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB COLLATE = utf8_general_ci |
+------
1 row in set (0 sec)
drizzle> show table status;
+------
| Session | Schema | Name | Type | Engine | Version | Rows | Avg_row_length | Table_size | Auto_increment |
+------
| 0 | test | t1 | STANDARD | InnoDB | 1 | 1 | 6 | 16384 | 0 |
+------
1 row in set (0 sec)
Related branches
Changed in drizzle: | |
assignee: | nobody → Andrew Hutchings (linuxjedi) |
Test case added in the "broken" suite of my linked branch, run with
cd tests; ./test-run --suite=broken show_table_ status_ bug_lp622472
Current result:
broken. show_table_ status_ bug_lp622472 [ fail ] projects/ drizzle/ bzr/drizzle-bug622472/tests/ suite/broken/ r/show_ table_status_ bug_lp622472. result 2010-08-23 17:12:27.000000000 +0300 projects/ drizzle/ bzr/drizzle-bug622472/tests/ suite/broken/ r/show_ table_status_ bug_lp622472. reject 2010-08-23 18:31:35.000000000 +0300
--- /home/hartmut/
+++ /home/hartmut/
@@ -4,7 +4,6 @@
CREATE TABLE t1 (id INT PRIMARY KEY);
SHOW TABLE STATUS LIKE 't1';
Session Schema Name Type Engine Version Rows Avg_row_length Table_size Auto_increment
-0 test t1 STANDARD InnoDB 1 1 6 16384 0
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
drizzletest: Result content mismatch