~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to plugin/haildb/tests/t/basic_transaction.test

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
connect (con1,localhost,root,,);
2
 
connect (con2,localhost,root,,);
3
 
connection con1;
4
 
CREATE TABLE t1 (a int primary key);
5
 
connection con2;
6
 
START TRANSACTION WITH CONSISTENT SNAPSHOT;
7
 
SELECT count(*) from t1;
8
 
connection con1;
9
 
BEGIN;
10
 
INSERT INTO t1 VALUES (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),(32);
11
 
connection con2;
12
 
select count(*) from t1;
13
 
connection con1;
14
 
INSERT INTO t1 VALUES  (33),(34),(35),(36),(37),(38),(39),(40),(41),(42);
15
 
COMMIT;
16
 
SELECT count(*) from t1;
17
 
disconnect con1;
18
 
disconnect con2;
19
 
connection default;
20
 
DROP TABLE t1;