~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/suite/transaction_log/r/update.result

Merging Jay.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
INSERT INTO t1 (name,alias) VALUES ("jeff lebowski","dude");
18
18
UPDATE t1 SET alias = "the dude" WHERE alias = "dude";
19
19
DROP TABLE t1;
 
20
CREATE TABLE t1 (
 
21
id INT NOT NULL
 
22
, counter INT NOT NULL
 
23
, PRIMARY KEY (id)
 
24
);
 
25
INSERT INTO t1 (id, counter) VALUES (1,1),(2,2),(3,3);
 
26
UPDATE t1 SET counter = counter + 1 WHERE id = 1;
 
27
UPDATE t1 SET counter = counter + 1 WHERE id IN (2,3);
 
28
DROP TABLE t1;
20
29
DROP TABLE IF EXISTS `t1`;
21
30
CREATE TABLE t1 ( id INT NOT NULL , padding VARCHAR(200) NOT NULL , PRIMARY KEY (id) );
22
31
INSERT INTO `test`.`t1` (`id`,`padding`) VALUES (1,'I love testing.');
31
40
INSERT INTO `test`.`t1` (`id`,`name`,`alias`) VALUES (1,'jeff lebowski','dude');
32
41
UPDATE `test`.`t1` SET `alias`='the dude' WHERE `id`=1;
33
42
DROP TABLE `t1`;
 
43
CREATE TABLE t1 ( id INT NOT NULL , counter INT NOT NULL , PRIMARY KEY (id) );
 
44
START TRANSACTION;
 
45
INSERT INTO `test`.`t1` (`id`,`counter`) VALUES (1,1);
 
46
INSERT INTO `test`.`t1` (`id`,`counter`) VALUES (2,2);
 
47
INSERT INTO `test`.`t1` (`id`,`counter`) VALUES (3,3);
 
48
COMMIT;
 
49
UPDATE `test`.`t1` SET `counter`=2 WHERE `id`=1;
 
50
START TRANSACTION;
 
51
UPDATE `test`.`t1` SET `counter`=3 WHERE `id`=2;
 
52
UPDATE `test`.`t1` SET `counter`=4 WHERE `id`=3;
 
53
COMMIT;
 
54
DROP TABLE `t1`;
34
55
SET GLOBAL transaction_log_truncate_debug= true;