~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/suite/execute/r/transaction.result

  • Committer: Brian Aker
  • Date: 2010-10-28 17:12:01 UTC
  • mfrom: (1887.1.3 merge)
  • Revision ID: brian@tangent.org-20101028171201-baj6l1bnntn1s4ad
Merge in POTFILES changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
CREATE TABLE t1 (a SERIAL);
2
 
SET @insert_var= "INSERT INTO t1 VALUES()";
3
 
EXECUTE @insert_var;
4
 
SELECT a FROM t1;
5
 
a
6
 
1
7
 
SET AUTOCOMMIT= 0;
8
 
START TRANSACTION;
9
 
EXECUTE @insert_var;
10
 
COMMIT;
11
 
SELECT a FROM t1;
12
 
a
13
 
1
14
 
2
15
 
START TRANSACTION;
16
 
Warnings:
17
 
Warning 1746    There is already a transaction in progress
18
 
EXECUTE @insert_var;
19
 
ROLLBACK;
20
 
SELECT a FROM t1;
21
 
a
22
 
1
23
 
2
24
 
START TRANSACTION;
25
 
Warnings:
26
 
Warning 1746    There is already a transaction in progress
27
 
SET @insert_var= "INSERT INTO t1 VALUES(); SELECT WILL_ERROR;";
28
 
EXECUTE @insert_var;
29
 
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near '; SELECT WILL_ERROR;' at line 1
30
 
COMMIT;
31
 
SELECT a FROM t1;
32
 
a
33
 
1
34
 
2
35
 
SET AUTOCOMMIT= 1;
36
 
DROP TABLE t1;