~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/suite/execute/t/transaction.test

  • Committer: lbieber at stabletransit
  • Date: 2010-10-14 15:43:11 UTC
  • mfrom: (1848.1.4 build)
  • Revision ID: lbieber@drizzle-build-n02.wc1.dfw1.stabletransit.com-20101014154311-ojsrl9uz80yvizey
Merge Travis - changing struct to C++ classes
Merge Andrew - fix bug #571579: libdrizzle unexpected hang up when using in extremely slow networking environment
Merge Andrew - fix bug #643772: Large rows cannot be read if packet_size exceeds max buffer size
Merge Andrew - fix bug #660082: libdrizzle missing rev.147
Merge Andrew - fix bug 653234: drizzledump (and other clients?) should print Password: prompt on stderr
Merge Andrew - fix bug #653438: "Enter password" prompt should not print stars, or erase them on enter
Merge Andrew - fix bug 659824: Drizzle client UTF8 processing endless loop

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
2
 
# Test for NON CONCURRENT transaction mix with EXECUTE
3
 
 
4
 
CREATE TABLE t1 (a SERIAL);
5
 
SET @insert_var= "INSERT INTO t1 VALUES()";
6
 
EXECUTE @insert_var;
7
 
SELECT a FROM t1;
8
 
 
9
 
SET AUTOCOMMIT= 0;
10
 
 
11
 
 
12
 
START TRANSACTION;
13
 
EXECUTE @insert_var;
14
 
COMMIT;
15
 
SELECT a FROM t1;
16
 
 
17
 
START TRANSACTION;
18
 
EXECUTE @insert_var;
19
 
ROLLBACK;
20
 
SELECT a FROM t1;
21
 
 
22
 
# We are generating an error in the EXECUTE, so the insert should be rolled
23
 
# back.
24
 
START TRANSACTION;
25
 
SET @insert_var= "INSERT INTO t1 VALUES(); SELECT WILL_ERROR;";
26
 
--error ER_PARSE_ERROR
27
 
EXECUTE @insert_var;
28
 
COMMIT;
29
 
SELECT a FROM t1;
30
 
 
31
 
SET AUTOCOMMIT= 1;
32
 
DROP TABLE t1;