Debian Codegraph @

mysql-test/suite/memcached/r/memc227_lock.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,c21", "c3", "c4", "c5", "PRIMARY");
8 CREATE USER mysqltest1@localhost;
9 CREATE USER mysqltest2@localhost;
10 connect mysqltest1,localhost,mysqltest1,,;
11 connect mysqltest2,localhost,mysqltest2,,;
12 connection mysqltest1;
13 USE test;
14 DROP TABLE IF EXISTS t1;
15 CREATE TABLE t1 (c1 VARCHAR(32),
16 c2 VARCHAR(1024),
17 c21 VARCHAR(1024),
18 c3 INT, c4 BIGINT UNSIGNED, c5 INT, primary key(c1))
19 ENGINE = INNODB;
20 DROP TABLE IF EXISTS t2;
21 CREATE TABLE t2 (c1 VARCHAR(32),
22 c2 VARCHAR(255),
23 c21 VARCHAR(255),
24 c3 INT, c4 BIGINT UNSIGNED, c5 INT, primary key(c1))
25 ENGINE = INNODB;
26 INSERT INTO t1 VALUES ('D', 'Darmstadt', 'City', 0, 0, 0);
27 INSERT INTO t1 VALUES ('B', 'Berlin', 'Mitte', 0, 0, 0);
28 INSERT INTO t1 VALUES ('C', 'Cottbus', 'West', 0, 0 ,0);
29 INSERT INTO t1 VALUES ('H', 'Hamburg', 'Norderstedt', 0, 0, 0);
30 INSERT INTO t2 VALUES ('D', 'Darmstadt', 'City', 0, 0, 0);
31 INSERT INTO t2 VALUES ('B', 'Berlin', 'Mitte', 0, 0, 0);
32 INSERT INTO t2 VALUES ('C', 'Cottbus', 'West', 0, 0 ,0);
33 INSERT INTO t2 VALUES ('H', 'Hamburg', 'Norderstedt', 0, 0, 0);
34 connection default;
35 INSTALL PLUGIN daemon_memcached SONAME 'libmemcached.so';
36 Warnings:
37 Warning 1681 'InnoDB Memcached Plugin' is deprecated and will be removed in a future release.
38 connection mysqltest2;
39 USE test;
40 SELECT c1,c2,c21 FROM t1;
41 c1 c2 c21
42 B Berlin Mitte
43 C Cottbus West
44 D Darmstadt City
45 H Hamburg Norderstedt
46 connection mysqltest1;
47 LOCK TABLES t2 READ;
48 connection mysqltest2;
49 Here are the memcached results with D,B,H,C:
50 Darmstadt|City
51 Berlin|Mitte
52 Hamburg|Norderstedt
53 Cottbus|West
54 SELECT c1,c2,c21 FROM t1;
55 c1 c2 c21
56 B Berlin Mitte
57 C Cottbus West
58 D Darmstadt City
59 H Hamburg Norderstedt
60 connection mysqltest1;
61 UNLOCK TABLES;
62 connection mysqltest2;
63 Here are the memcached results after set:
64 Essen|Ost
65 SELECT c1,c2,c21 FROM t1;
66 c1 c2 c21
67 B Berlin Mitte
68 C Cottbus West
69 D Darmstadt City
70 E Essen Ost
71 H Hamburg Norderstedt
72 connection mysqltest1;
73 LOCK TABLES t2 WRITE;
74 Here are the memcached results after add:
75 Frankfurt|Sachsenhause
76 SELECT c1,c2,c21 FROM t1;
77 ERROR HY000: Table 't1' was not locked with LOCK TABLES
78 Here are the memcached results after replace:
79 Frankfurt a. M.|Sachsenhausen
80 SELECT c1,c2,c21 FROM t1;
81 ERROR HY000: Table 't1' was not locked with LOCK TABLES
82 Here are the memcached results after delete:
83 SELECT c1,c2,c21 FROM t1;
84 ERROR HY000: Table 't1' was not locked with LOCK TABLES
85 Here are the memcached results after add Frankfurt|:
86 Frankfurt|
87 Here are the memcached results after add |Airport:
88 Frankfurt|
89 SELECT c1,c2,c21 FROM t1;
90 ERROR HY000: Table 't1' was not locked with LOCK TABLES
91 connection mysqltest1;
92 UNLOCK TABLES;
93 Here are the memcached results after replace Frankfurt a.M.:
94 Frankfurt a. M.|
95 Here are the memcached results after replace Sachsenhausen:
96 |Sachsenhausen
97 SELECT c1,c2,c21 FROM t1;
98 c1 c2 c21
99 B Berlin Mitte
100 C Cottbus West
101 D Darmstadt City
102 E Essen Ost
103 F NULL Sachsenhausen
104 H Hamburg Norderstedt
105 connection mysqltest1;
106 DROP TABLE t1;
107 DROP TABLE t2;
108 connection default;
109 disconnect mysqltest1;
110 disconnect mysqltest2;
111 UNINSTALL PLUGIN daemon_memcached;
112 DROP DATABASE innodb_memcache;
113 DROP USER mysqltest1@localhost;
114 DROP USER mysqltest2@localhost;
115 SET @@global.transaction_isolation= @transaction_isolation;