~ubuntu-branches/ubuntu/saucy/drizzle/saucy-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

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;