~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-10 19:32:58 UTC
  • Revision ID: brian@tangent.org-20101010193258-uvwhrqqpbd2e065x
Added support for pre/post triggers (this removes the need for the current
logging system I believe).

Add test cases to existing triggers.

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
 
EXECUTE @insert_var;
17
 
ROLLBACK;
18
 
SELECT a FROM t1;
19
 
a
20
 
1
21
 
2
22
 
START TRANSACTION;
23
 
SET @insert_var= "INSERT INTO t1 VALUES(); SELECT WILL_ERROR;";
24
 
EXECUTE @insert_var;
25
 
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
26
 
COMMIT;
27
 
SELECT a FROM t1;
28
 
a
29
 
1
30
 
2
31
 
DROP TABLE t1;