~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/suite/transaction_log/t/update.inc

Added code necessary for building plugins dynamically.
Merged in changes from lifeless to allow autoreconf to work.
Touching plugin.ini files now triggers a rebuid - so config/autorun.sh is no
longer required to be run after touching those.
Removed the duplicate plugin names - also removed the issue that getting them
different would silently fail weirdly later.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
# UPDATE all records in table
26
26
UPDATE t1 SET padding= "AAA";
 
27
 
 
28
DROP TABLE t1;
 
29
 
 
30
# Test for LP Bug#440141:
 
31
#
 
32
# Replication generates incorrect update commands when 
 
33
# where clause uses a field contained in set clause
 
34
#
 
35
CREATE TABLE t1 (
 
36
  id int AUTO_INCREMENT NOT NULL PRIMARY KEY
 
37
, name varchar(1024)
 
38
, alias varchar(1024)
 
39
);
 
40
 
 
41
INSERT INTO t1 (name,alias) VALUES ("jeff lebowski","dude");
 
42
 
 
43
UPDATE t1 SET alias = "the dude" WHERE alias = "dude";
 
44
 
 
45
DROP TABLE t1;
 
46
 
 
47
# Tests UPDATE statement which changes an existing row
 
48
# by referencing the changed field.
 
49
 
 
50
CREATE TABLE t1 (
 
51
  id INT NOT NULL
 
52
, counter INT NOT NULL
 
53
, PRIMARY KEY (id)
 
54
);
 
55
 
 
56
INSERT INTO t1 (id, counter) VALUES (1,1),(2,2),(3,3);
 
57
 
 
58
UPDATE t1 SET counter = counter + 1 WHERE id = 1;
 
59
UPDATE t1 SET counter = counter + 1 WHERE id IN (2,3);
 
60
 
 
61
DROP TABLE t1;