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

« back to all changes in this revision

Viewing changes to plugin/transaction_log/tests/t/bulk_commit.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 large transactions that are broken
2
 
# 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
 
--echo Test segmenting a single statement changing a lot of rows
12
 
--echo
13
 
START TRANSACTION;
14
 
INSERT INTO t (b) VALUES
15
 
  (REPEAT(".", 16000)), (REPEAT(".", 16000)),
16
 
  (REPEAT(".", 16000)), (REPEAT(".", 16000)),
17
 
  (REPEAT(".", 16000)), (REPEAT(".", 16000)),
18
 
  (REPEAT(".", 16000)), (REPEAT(".", 16000)),
19
 
  (REPEAT(".", 16000)), (REPEAT(".", 16000));
20
 
COMMIT;
21
 
 
22
 
--echo
23
 
--source ../plugin/transaction_log/tests/t/bulk_check.inc
24
 
 
25
 
DROP TABLE t;
26
 
 
27
 
# Truncate the log file to reset for the next test
28
 
--source ../plugin/transaction_log/tests/t/truncate_log.inc