~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/suite/serial_event_log/t/multi_insert.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 for multi-value INSERT statements
 
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
);
 
18
 
 
19
INSERT INTO t1 VALUES (1, "I love testing."), (2, "I hate testing.");
 
20
 
 
21
# Read in the event.log.  We must cut out all the Timestamp: XXXXXX
 
22
# because they are not deterministic.
 
23
--exec ../drizzled/message/command_reader var/master-data/event.log | sed 's/Timestamp: [0-9]*//g'