Debian Codegraph @

mysql-test/suite/memcached/r/memc218_decr.result

raw
1 SET @transaction_isolation= @@global.transaction_isolation;
2 SET GLOBAL TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
3 INSERT INTO cache_policies VALUES("cache_policy", "innodb_only",
4 "innodb_only", "innodb_only", "innodb_only");
5 INSERT INTO config_options VALUES("separator", "|");
6 INSERT INTO containers VALUES ("desc_t1", "test", "t1",
7 "c1", "c2", "c3", "c4", "c5", "PRIMARY");
8 USE test;
9 DROP TABLE IF EXISTS t1;
10 CREATE TABLE t1 (c1 VARCHAR(255),
11 c2 VARCHAR(1024),
12 c3 INT, c4 BIGINT UNSIGNED, c5 INT, primary key(c1))
13 ENGINE = INNODB;
14 INSERT INTO t1 VALUES ('1', '10', 0, 0, 0);
15 INSERT INTO t1 VALUES ('2', '20', 0, 0, 0);
16 INSERT INTO t1 VALUES ('3', 'Berlin', 0, 0 ,0);
17 INSERT INTO t1 VALUES ('4', '40', 0, 0, 0);
18 INSTALL PLUGIN daemon_memcached SONAME 'libmemcached.so';
19 Warnings:
20 Warning 1681 'InnoDB Memcached Plugin' is deprecated and will be removed in a future release.
21 SELECT c1,c2 FROM t1;
22 c1 c2
23 1 10
24 2 20
25 3 Berlin
26 4 40
27 Here are the memcached results:
28 10
29 20
30 Berlin
31 40
32 Here are the memcached results after decr 4|40:
33 39
34 19
35 19
36 SELECT c1,c2 FROM t1;
37 c1 c2
38 1 10
39 2 20
40 3 0
41 4 19
42 DROP TABLE IF EXISTS t1;
43 UNINSTALL PLUGIN daemon_memcached;
44 DROP DATABASE innodb_memcache;
45 SET @@global.transaction_isolation= @transaction_isolation;