~drizzle-developers/drizzle/drizzle-7.1-packaging

« back to all changes in this revision

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

  • Committer: Henrik Ingo
  • Date: 2012-03-10 20:39:59 UTC
  • mfrom: (2483.20.13 workspace)
  • Revision ID: henrik.ingo@avoinelama.fi-20120310203959-60hq9fe2jkrv9ili
Merge latest trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
2
 
# Simple test of the serial event log for testing ALTER command 
3
 
4
 
# We create a table then alter it by adding a column into it. 
5
 
6
 
# We then use the transaction_reader in plugin/transaction_log/utilities to read the events.
7
 
#
8
 
 
9
 
--disable_warnings
10
 
DROP TABLE IF EXISTS t1, t2;
11
 
--enable_warnings
12
 
 
13
 
CREATE TABLE t1 (
14
 
  id INT NOT NULL
15
 
, padding VARCHAR(200) NOT NULL
16
 
, PRIMARY KEY (id)
17
 
);
18
 
 
19
 
RENAME TABLE t1 TO t2;
20
 
 
21
 
DROP TABLE t2;