Navigation Menu

Skip to content

Commit

Permalink
upgrade testcase for fulltext.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tetsuro IKEDA committed Apr 6, 2010
1 parent c3940f0 commit 95fd8f0
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
28 changes: 28 additions & 0 deletions test/sql/r/fulltext.result
@@ -0,0 +1,28 @@
install plugin mroonga soname 'libmroonga.so';
set storage_engine=mroonga;
drop table if exists t1, t2, t3;
create table t1 (c1 int primary key, c2 text, fulltext index ft (c2));
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` int(11) NOT NULL,
`c2` text,
PRIMARY KEY (`c1`),
FULLTEXT KEY `ft` (`c2`)
) ENGINE=mroonga DEFAULT CHARSET=latin1
insert into t1 values (1, "hoge hoge");
insert into t1 values (2, "fuga fuga");
insert into t1 values (3, "moge moge");
select * from t1;
c1 c2
1 hoge hoge
2 fuga fuga
3 moge moge
flush tables;
select * from t1;
c1 c2
1 hoge hoge
2 fuga fuga
3 moge moge
drop table t1;
uninstall plugin mroonga;
19 changes: 19 additions & 0 deletions test/sql/t/fulltext.test
@@ -0,0 +1,19 @@
--disable_warnings
install plugin mroonga soname 'libmroonga.so';
set storage_engine=mroonga;
drop table if exists t1, t2, t3;
--enable_warnings

create table t1 (c1 int primary key, c2 text, fulltext index ft (c2));
show create table t1;
insert into t1 values (1, "hoge hoge");
insert into t1 values (2, "fuga fuga");
insert into t1 values (3, "moge moge");
select * from t1;
flush tables;
select * from t1;
drop table t1;

--disable_warnings
uninstall plugin mroonga;
--enable_warnings

0 comments on commit 95fd8f0

Please sign in to comment.