Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test case for "SHOW CREATE TABLE".
- Loading branch information
Tetsuro IKEDA
committed
Mar 24, 2010
1 parent
82e91a3
commit 7dd8a83
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 |