summaryrefslogtreecommitdiff
path: root/storage/mroonga/mysql-test/mroonga/wrapper/r/variable_dry_write_update.result
blob: b2fe4607f8f90d541eeb8684db65f47014f85293 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
drop table if exists diaries;
create table diaries (
id int primary key auto_increment,
body text,
fulltext index body_index (body)
) default charset utf8 COMMENT = 'engine "innodb"';
insert into diaries (body) values ("will start groonga!");
set mroonga_dry_write=true;
update diaries set body = "starting groonga..." where id = 1;
select * from diaries;
id	body
1	starting groonga...
select * from diaries where match (body) against ("will");
id	body
1	starting groonga...
select * from diaries where match (body) against ("starting");
id	body
set mroonga_dry_write=false;
update diaries set body = "started groonga." where id = 1;
select * from diaries;
id	body
1	started groonga.
select * from diaries where match (body) against ("will");
id	body
1	started groonga.
select * from diaries where match (body) against ("starting");
id	body
select * from diaries where match (body) against ("started");
id	body
1	started groonga.
drop table diaries;