Navigation Menu

Skip to content

Commit

Permalink
added test case for "SHOW TABLE STATUS".
Browse files Browse the repository at this point in the history
  • Loading branch information
Tetsuro IKEDA committed Mar 24, 2010
1 parent 7dd8a83 commit 01f4bca
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/sql/r/show_table_status.result
@@ -0,0 +1,19 @@
install plugin mroonga soname 'libmroonga.so';
set storage_engine=mroonga;
drop database if exists db1;
create database db1;
use db1;
create table t1 (c1 int);
show table status;
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
t1 mroonga 10 Fixed 0 0 0 0 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL
create table t2 (c1 int, c2 int);
show table status;
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
t1 mroonga 10 Fixed 0 0 0 0 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL
t2 mroonga 10 Fixed 0 0 0 0 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL
show table status like 't2';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
t2 mroonga 10 Fixed 0 0 0 0 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL
drop database db1;
uninstall plugin mroonga;
20 changes: 20 additions & 0 deletions test/sql/t/show_table_status.test
@@ -0,0 +1,20 @@
--disable_warnings
install plugin mroonga soname 'libmroonga.so';
set storage_engine=mroonga;
drop database if exists db1;
create database db1;
use db1;
--enable_warnings

create table t1 (c1 int);
show table status;

create table t2 (c1 int, c2 int);
show table status;

show table status like 't2';

--disable_warnings
drop database db1;
uninstall plugin mroonga;
--enable_warnings

0 comments on commit 01f4bca

Please sign in to comment.