~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/suite/command_log/t/insert_select.inc

  • Committer: Brian Aker
  • Date: 2009-09-21 23:40:18 UTC
  • mfrom: (1039.5.63 replication)
  • Revision ID: brian@gaz-20090921234018-gd9kqdyigwxtik9z
Merge Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
2
# Simple test of the serial event log for single INSERT SELECT statements
 
3
 
4
# We create a table and insert some records
 
5
# into it.  We then create another table and
 
6
# INSERT SELECT from the first table into the 
 
7
# new one.
 
8
 
9
# We then use the command_reader in drizzled/message/ to read the events.
 
10
#
 
11
 
 
12
--disable_warnings
 
13
DROP TABLE IF EXISTS t1;
 
14
DROP TABLE IF EXISTS t2;
 
15
--enable_warnings
 
16
 
 
17
CREATE TABLE t1 (
 
18
  id INT NOT NULL
 
19
, padding VARCHAR(200) NOT NULL
 
20
);
 
21
 
 
22
INSERT INTO t1 VALUES (1, "I love testing.");
 
23
INSERT INTO t1 VALUES (2, "I hate testing.");
 
24
 
 
25
CREATE TABLE t2 (
 
26
  id INT NOT NULL
 
27
, padding VARCHAR(200) NOT NULL
 
28
);
 
29
 
 
30
INSERT INTO t2 SELECT * FROM t1;