2
# Simple test of the transaction log for INSERT ...
3
# ON DUPLICATE KEY UPDATE statements
5
# We create a table and insert some records
6
# into it. We then issue an INSERT ... ON DUPLICATE KEY UPDATE
7
# statement which will affect an existing record.
9
# We then use the transaction_reader in plugin/transaction_log/utilities to read the events.
13
DROP TABLE IF EXISTS t1;
17
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY
18
, padding VARCHAR(200) NOT NULL
21
INSERT INTO t1 VALUES (1, "I love testing.");
22
INSERT INTO t1 VALUES (2, "I hate testing.");
24
INSERT INTO t1 VALUES (2, "I love testing")
25
ON DUPLICATE KEY UPDATE padding="I love testing";