| 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(32), |
| 11 |
c2 VARCHAR(1024), |
| 12 |
c3 INT, c4 BIGINT UNSIGNED, c5 INT, primary key(c1)) |
| 13 |
ENGINE = INNODB; |
| 14 |
INSERT INTO t1 VALUES ('D', 'Darmstadt', 0, 0, 0); |
| 15 |
INSTALL PLUGIN daemon_memcached SONAME 'libmemcached.so'; |
| 16 |
Warnings: |
| 17 |
Warning 1681 'InnoDB Memcached Plugin' is deprecated and will be removed in a future release. |
| 18 |
SELECT c1,c2 FROM t1; |
| 19 |
c1 c2 |
| 20 |
D Darmstadt |
| 21 |
FLUSH TABLE WITH READ LOCK; |
| 22 |
Here Get should succeed |
| 23 |
Darmstadt |
| 24 |
Set E|Essen should fail: |
| 25 |
Error: E|Essen cannot be inserted. |
| 26 |
UNLOCK TABLES; |
| 27 |
Here Get should succeed |
| 28 |
Darmstadt |
| 29 |
Set E|Essen: |
| 30 |
Get E: |
| 31 |
Essen |
| 32 |
DROP TABLE t1; |
| 33 |
UNINSTALL PLUGIN daemon_memcached; |
| 34 |
DROP DATABASE innodb_memcache; |
| 35 |
SET @@global.transaction_isolation= @transaction_isolation; |