~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/suite/serial_event_log/t/update.test

MergeĀ fromĀ lp:~jaypipes/drizzle/serial_event_log

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
2
# Simple test of the serial event log
 
3
 
4
# We create a table and insert some records
 
5
# into it.
 
6
 
7
# We then use the transaction_reader in drizzled/message/ to read the events.
 
8
#
 
9
 
 
10
--disable_warnings
 
11
DROP TABLE IF EXISTS t1;
 
12
--enable_warnings
 
13
 
 
14
CREATE TABLE t1 (
 
15
  id INT NOT NULL
 
16
, padding VARCHAR(200) NOT NULL
 
17
, PRIMARY KEY (id)
 
18
);
 
19
 
 
20
INSERT INTO t1 VALUES (1, "I love testing.");
 
21
INSERT INTO t1 VALUES (2, "I hate testing.");
 
22
 
 
23
UPDATE t1 SET padding= "I REALLY love testing." WHERE id = 1;
 
24
UPDATE t1 SET padding= "I REALLY hate testing." WHERE id = 2;
 
25
 
 
26
# Read in the event.log.  We must cut out all the Timestamp: XXXXXX
 
27
# because they are not deterministic.
 
28
--exec ../drizzled/message/command_reader var/master-data/event.log | sed 's/Timestamp: [0-9]*//g'