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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-03-18 12:12:31 UTC
  • Revision ID: james.westby@ubuntu.com-20100318121231-k6g1xe6cshbwa0f8
Tags: upstream-2010.03.1347
ImportĀ upstreamĀ versionĀ 2010.03.1347

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
UPDATE t1 SET id=1 WHERE padding='I love testing.';
 
9
START TRANSACTION;
 
10
SELECT * FROM t1 WHERE id = 1;
 
11
id      padding
 
12
1       I love testing.
 
13
SELECT * FROM t1 WHERE id = 2;
 
14
id      padding
 
15
2       I hate testing.
 
16
COMMIT;
 
17
START TRANSACTION;
 
18
DROP TABLE IF EXISTS `test`.`t1`;
 
19
COMMIT;
 
20
START TRANSACTION;
 
21
CREATE TABLE `t1` ( `id` INT NOT NULL, `padding` VARCHAR(200) NOT NULL COLLATE utf8_general_ci, PRIMARY KEY `PRIMARY` (`id`) ) ENGINE = InnoDB COLLATE = utf8_general_ci;
 
22
COMMIT;
 
23
START TRANSACTION;
 
24
INSERT INTO `test`.`t1` (`id`,`padding`) VALUES (1,'I love testing.');
 
25
COMMIT;
 
26
START TRANSACTION;
 
27
INSERT INTO `test`.`t1` (`id`,`padding`) VALUES (2,'I hate testing.');
 
28
COMMIT;
 
29
SET GLOBAL transaction_log_truncate_debug= true;