~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to plugin/transaction_log/tests/t/bulk_rollback.test

  • 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
 
# This test validates message format for a rollback of a large transactions
2
 
# that is broken up into multiple Transaction messages.
3
 
 
4
 
# Ignore startup/shutdown events
5
 
--disable_query_log
6
 
--source ../plugin/transaction_log/tests/t/truncate_log.inc
7
 
--enable_query_log
8
 
 
9
 
CREATE TABLE t (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b VARCHAR(16000));
10
 
 
11
 
START TRANSACTION;
12
 
INSERT INTO t (b) VALUES
13
 
  (REPEAT(".", 16000)), (REPEAT(".", 16000)),
14
 
  (REPEAT(".", 16000)), (REPEAT(".", 16000)),
15
 
  (REPEAT(".", 16000)), (REPEAT(".", 16000)), 
16
 
  (REPEAT(".", 16000)), (REPEAT(".", 16000)),
17
 
  (REPEAT(".", 16000)), (REPEAT(".", 16000));
18
 
ROLLBACK;
19
 
 
20
 
--echo
21
 
--source ../plugin/transaction_log/tests/t/bulk_check.inc
22
 
 
23
 
DROP TABLE t;
24
 
 
25
 
# Truncate the log file to reset for the next test
26
 
--source ../plugin/transaction_log/tests/t/truncate_log.inc