~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-11-12 12:26:01 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101112122601-myppfj3tfmlkccuq
Tags: upstream-2010.11.03
ImportĀ upstreamĀ versionĀ 2010.11.03

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
2
# Tests ordering of transaction ID, that SELECT queries
 
3
# do not increment the transaction ID, and that the proper
 
4
# generation of transaction IDs is done for DDL operations.
 
5
#
 
6
 
 
7
--disable_warnings
 
8
DROP TABLE IF EXISTS t1;
 
9
--enable_warnings
 
10
 
 
11
CREATE TABLE t1 (
 
12
  id INT NOT NULL PRIMARY KEY
 
13
, padding VARCHAR(200) NOT NULL
 
14
);
 
15
 
 
16
INSERT INTO t1 VALUES (1, "I love testing.");
 
17
INSERT INTO t1 VALUES (2, "I hate testing.");
 
18
 
 
19
SELECT * FROM t1;
 
20
 
 
21
ALTER TABLE t1 CHANGE COLUMN padding less_padding VARCHAR(180) NOT NULL;
 
22
 
 
23
 
24
# Should be no result here...
 
25
#
 
26
 
 
27
SELECT * FROM t1 WHERE id = 3;
 
28
 
 
29
DROP TABLE t1;