~cbjchen/ubuntu/trusty/mysql-5.6/fix-for-1500684

« back to all changes in this revision

Viewing changes to mysql-test/suite/innodb/t/import.test

  • Committer: liang.chen at canonical
  • Date: 2015-10-09 13:32:49 UTC
  • Revision ID: liang.chen@canonical.com-20151009133249-v5b8dc80a7jgjpig
Update to 5.6.26

Update to 5.6.26 to pick up security fixes.

local changes:
1. mysql-5.6.26-fix-build.patch is to fix a build dependency issue
2. change -fno-exception to -fexceptions in rules to allow catching
   exception

[cbjchen,r=]

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Test "ALTER TABLE ... IMPORT TABLESPACE" in InnoDB
 
2
--source include/have_innodb.inc
 
3
 
 
4
--echo #
 
5
--echo # Bug#20977779 CANNOT IMPORT TABLES CONTAINING PREFIX INDEXES
 
6
--echo #
 
7
 
 
8
CREATE TABLE t1 (c1 VARCHAR(32), c2 VARCHAR(32), c3 VARCHAR(32),
 
9
PRIMARY KEY (c1, c2, c3))
 
10
ENGINE=InnoDB;
 
11
 
 
12
ALTER TABLE t1 ADD INDEX ind1(c1(5), c2, c3);
 
13
ALTER TABLE t1 ADD INDEX ind2(c3, c1(10), c2);
 
14
ALTER TABLE t1 ADD INDEX ind3(c2, c3, c1(20));
 
15
 
 
16
INSERT INTO t1 VALUES ('Test Data -1', 'Test Data -2', 'Test Data -3');
 
17
 
 
18
--echo # Test with 2ndary index having prefix
 
19
--source suite/innodb/include/import.inc
 
20
 
 
21
--echo # Test with PK & 2ndary index with prefix
 
22
ALTER TABLE t1 DROP PRIMARY KEY, ADD PRIMARY KEY(c1(5), c2(10), c3(20));
 
23
--source suite/innodb/include/import.inc
 
24
 
 
25
DROP TABLE t1;