~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/t/bug46760.test

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
-- source include/have_innodb.inc
 
2
 
 
3
--echo #
 
4
--echo # Bug#46760: Fast ALTER TABLE no longer works for InnoDB
 
5
--echo #
 
6
 
 
7
CREATE TABLE t1 (a INT) ENGINE=InnoDB;
 
8
INSERT INTO t1 VALUES (1);
 
9
 
 
10
--echo # By using --enable_info and verifying that number of affected
 
11
--echo # rows is 0 we check that this ALTER TABLE is really carried
 
12
--echo # out as "fast/online" operation, i.e. without full-blown data
 
13
--echo # copying.
 
14
--echo #
 
15
--echo # I.e. info for the below statement should normally look like:
 
16
--echo #
 
17
--echo # affected rows: 0
 
18
--echo # info: Records: 0  Duplicates: 0  Warnings: 0
 
19
 
 
20
--enable_info
 
21
ALTER TABLE t1 ALTER COLUMN a SET DEFAULT 10;
 
22
--disable_info
 
23
SHOW CREATE TABLE t1;
 
24
 
 
25
DROP TABLE t1;
 
26
 
 
27
--echo #
 
28
--echo # MySQL Bug#39200: optimize table does not recognize 
 
29
--echo # ROW_FORMAT=COMPRESSED
 
30
--echo #
 
31
 
 
32
CREATE TABLE t1 (a INT) ROW_FORMAT=compressed;
 
33
SHOW CREATE TABLE t1;
 
34
OPTIMIZE TABLE t1;
 
35
SHOW CREATE TABLE t1;
 
36
DROP TABLE t1;
 
37
 
 
38
--echo End of 5.1 tests