Navigation Menu

Skip to content

Commit

Permalink
[test][storage] add new lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 13, 2011
1 parent bd6f20c commit 22f5804
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/sql/groonga_storage/t/dry_write_delete.test
Expand Up @@ -26,14 +26,18 @@ create table diaries (
fulltext index body_index (body)
) default charset utf8;
show create table diaries;

insert into diaries (body) values ("will start groonga!");
select * from diaries;

set global groonga_dry_write=true;
delete from diaries where id = 1;
select * from diaries;

set global groonga_dry_write=false;
delete from diaries where id = 1;
select * from diaries;

drop table diaries;

--source suite/groonga_include/groonga_deinit.inc
4 changes: 4 additions & 0 deletions test/sql/groonga_storage/t/dry_write_insert.test
Expand Up @@ -26,14 +26,18 @@ create table diaries (
fulltext index body_index (body)
) default charset utf8;
show create table diaries;

insert into diaries (body) values ("will start groonga!");
select * from diaries;

set global groonga_dry_write=true;
insert into diaries (body) values ("starting groonga...");
select * from diaries;

set global groonga_dry_write=false;
insert into diaries (body) values ("started groonga.");
select * from diaries;

drop table diaries;

--source suite/groonga_include/groonga_deinit.inc
4 changes: 4 additions & 0 deletions test/sql/groonga_storage/t/dry_write_update.test
Expand Up @@ -26,13 +26,17 @@ create table diaries (
fulltext index body_index (body)
) default charset utf8;
show create table diaries;

insert into diaries (body) values ("will start groonga!");

set global groonga_dry_write=true;
update diaries set body = "starting groonga..." where id = 1;
select * from diaries;

set global groonga_dry_write=false;
update diaries set body = "starting groonga..." where id = 1;
select * from diaries;

drop table diaries;

--source suite/groonga_include/groonga_deinit.inc

0 comments on commit 22f5804

Please sign in to comment.