~ubuntu-branches/ubuntu/saucy/drizzle/saucy-proposed

« back to all changes in this revision

Viewing changes to plugin/transaction_log/tests/t/auto_commit.inc

  • 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
 
2
 
# Simple test of the serial event log for autocommit behaviour.
3
 
#
4
 
 
5
 
--disable_warnings
6
 
DROP TABLE IF EXISTS t1;
7
 
--enable_warnings
8
 
 
9
 
SET AUTOCOMMIT= 0;
10
 
 
11
 
CREATE TABLE t1 (
12
 
  id INT NOT NULL PRIMARY KEY
13
 
, padding VARCHAR(200) NOT NULL
14
 
);
15
 
 
16
 
INSERT INTO t1 VALUES (1, "I love testing.");
17
 
INSERT INTO t1 VALUES (2, "I hate testing.");
18
 
 
19
 
COMMIT;
20
 
DROP TABLE t1;
21
 
 
22
 
# Try the same thing with auto_commit turned on
23
 
# This should produce a commit between inserts...
24
 
 
25
 
SET AUTOCOMMIT= 1;
26
 
 
27
 
CREATE TABLE t1 (
28
 
  id INT NOT NULL PRIMARY KEY
29
 
, padding VARCHAR(200) NOT NULL
30
 
);
31
 
 
32
 
INSERT INTO t1 VALUES (1, "I love testing.");
33
 
INSERT INTO t1 VALUES (2, "I hate testing.");
34
 
 
35
 
DROP TABLE t1;