Navigation Menu

Skip to content

Commit

Permalink
add test case for "SHOW CREATE TABLE".
Browse files Browse the repository at this point in the history
  • Loading branch information
Tetsuro IKEDA committed Mar 24, 2010
1 parent 82e91a3 commit 7dd8a83
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
31 changes: 31 additions & 0 deletions test/sql/r/show_create_table.result
@@ -0,0 +1,31 @@
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 create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` int(11) DEFAULT NULL
) ENGINE=mroonga DEFAULT CHARSET=latin1
drop table t1;
create table t1 (c1 int, c2 int);
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` int(11) DEFAULT NULL,
`c2` int(11) DEFAULT NULL
) ENGINE=mroonga DEFAULT CHARSET=latin1
drop table t1;
create table t1 (c1 int primary key, c2 varchar(100));
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` int(11) NOT NULL,
`c2` varchar(100) DEFAULT NULL,
PRIMARY KEY (`c1`)
) ENGINE=mroonga DEFAULT CHARSET=latin1
drop table t1;
drop database db1;
uninstall plugin mroonga;
24 changes: 24 additions & 0 deletions test/sql/t/show_create_table.test
@@ -0,0 +1,24 @@
--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 create table t1;
drop table t1;

create table t1 (c1 int, c2 int);
show create table t1;
drop table t1;

create table t1 (c1 int primary key, c2 varchar(100));
show create table t1;
drop table t1;

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

0 comments on commit 7dd8a83

Please sign in to comment.