diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2016-03-25 20:51:22 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2016-03-31 10:11:16 +0400 |
commit | 282497dd6d1049b4fb963641504c2733752845a7 (patch) | |
tree | 7288d17c29fbbe9ac47ec51f6988fb954f59a361 /mysql-test/r/consistent_snapshot.result | |
parent | 5052e2479e873461bebfcedbc674bbaf57d3c968 (diff) | |
download | mariadb-git-282497dd6d1049b4fb963641504c2733752845a7.tar.gz |
MDEV-6720 - enable connection log in mysqltest by default
Diffstat (limited to 'mysql-test/r/consistent_snapshot.result')
-rw-r--r-- | mysql-test/r/consistent_snapshot.result | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/mysql-test/r/consistent_snapshot.result b/mysql-test/r/consistent_snapshot.result index 3a0227b1a1a..b978f1dd9d2 100644 --- a/mysql-test/r/consistent_snapshot.result +++ b/mysql-test/r/consistent_snapshot.result @@ -1,15 +1,15 @@ DROP TABLE IF EXISTS t1; -# Establish connection con1 (user=root) -# Establish connection con2 (user=root) +connect con1,localhost,root,,; +connect con2,localhost,root,,; ### Test 1: ### - While a consistent snapshot transaction is executed, ### no external inserts should be visible to the transaction. -# Switch to connection con1 +connection con1; CREATE TABLE t1 (a INT) ENGINE=innodb; START TRANSACTION WITH CONSISTENT SNAPSHOT; -# Switch to connection con2 +connection con2; INSERT INTO t1 VALUES(1); -# Switch to connection con1 +connection con1; SELECT * FROM t1; a COMMIT; @@ -18,9 +18,9 @@ COMMIT; ### committed inserts should be visible to the transaction. DELETE FROM t1; START TRANSACTION; -# Switch to connection con2 +connection con2; INSERT INTO t1 VALUES(1); -# Switch to connection con1 +connection con1; SELECT * FROM t1; a 1 @@ -31,12 +31,14 @@ COMMIT; START TRANSACTION WITH CONSISTENT SNAPSHOT; DELETE FROM t1; COMMIT WORK AND CHAIN; -# Switch to connection con2 +connection con2; INSERT INTO t1 VALUES(1); -# Switch to connection con1 +connection con1; SELECT * FROM t1; a 1 COMMIT; -# Switch to connection default + close connections con1 and con2 +connection default; +disconnect con1; +disconnect con2; DROP TABLE t1; |