~posulliv/drizzle/optimizer-style-cleanup

« back to all changes in this revision

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

  • Committer: Padraig O'Sullivan
  • Date: 2010-04-17 01:38:47 UTC
  • mfrom: (1237.9.238 bad-staging)
  • Revision ID: osullivan.padraig@gmail.com-20100417013847-ibjioqsfbmf5yg4g
Merge trunk.

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;