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

« back to all changes in this revision

Viewing changes to plugin/transaction_log/tests/r/truncate.result

  • 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
 
DROP TABLE IF EXISTS t1;
2
 
CREATE TABLE t1 (
3
 
id INT NOT NULL PRIMARY KEY
4
 
, padding VARCHAR(200) NOT NULL
5
 
);
6
 
INSERT INTO t1 VALUES (1, "I love testing.");
7
 
INSERT INTO t1 VALUES (2, "I hate testing.");
8
 
TRUNCATE TABLE t1;
9
 
DROP TABLE t1;
10
 
SET AUTOCOMMIT=0;
11
 
CREATE TABLE `test`.`t1` (   `id` INT NOT NULL,   `padding` VARCHAR(200) COLLATE utf8_general_ci NOT NULL,   PRIMARY KEY (`id`) ) ENGINE=InnoDB COLLATE = utf8_general_ci;
12
 
COMMIT;
13
 
START TRANSACTION;
14
 
INSERT INTO `test`.`t1` (`id`,`padding`) VALUES (1,'I love testing.');
15
 
COMMIT;
16
 
START TRANSACTION;
17
 
INSERT INTO `test`.`t1` (`id`,`padding`) VALUES (2,'I hate testing.');
18
 
COMMIT;
19
 
SET AUTOCOMMIT=0;
20
 
TRUNCATE TABLE `test`.`t1`;
21
 
COMMIT;
22
 
SET AUTOCOMMIT=0;
23
 
DROP TABLE `test`.`t1`;
24
 
COMMIT;
25
 
SET GLOBAL transaction_log_truncate_debug= true;