~clint-fewbar/drizzle/regex-policy-cache-limiter

« back to all changes in this revision

Viewing changes to plugin/transaction_log/tests/t/insert_select.inc

  • Committer: Clint Byrum
  • Date: 2012-03-15 18:05:43 UTC
  • mfrom: (2224.1.302 workspace)
  • Revision ID: clint@ubuntu.com-20120315180543-9jxxm4q10k3np2ws
merging with latest trunk

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 PRIMARY KEY
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 PRIMARY KEY
27
 
, padding VARCHAR(200) NOT NULL
28
 
);
29
 
 
30
 
INSERT INTO t2 SELECT * FROM t1;
31
 
 
32
 
DROP TABLE t1, t2;