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

« back to all changes in this revision

Viewing changes to mysql-test/r/merge_innodb.result

  • 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
DROP TABLE IF EXISTS t1, t2, t3, t4, t5;
 
2
CREATE TABLE t1 (c1 varchar(100)) ENGINE=MyISAM;
 
3
CREATE TABLE t2 (c1 varchar(100)) ENGINE=MyISAM;
 
4
CREATE TABLE t3 (c1 varchar(100)) ENGINE=InnoDB;
 
5
INSERT INTO t1 VALUES ('Ann'), ('Alice');
 
6
INSERT INTO t2 VALUES ('Bob'), ('Brian');
 
7
INSERT INTO t3 VALUES ('Chris'), ('Charlie');
 
8
CREATE TABLE t4 (c1 varchar(100)) ENGINE=MRG_MYISAM UNION=(t1,t2)
 
9
INSERT_METHOD=LAST;
 
10
CREATE TABLE t5 (c1 varchar(100)) ENGINE=MRG_MYISAM UNION=(t1,t3)
 
11
INSERT_METHOD=LAST;
 
12
SELECT * FROM t5;
 
13
ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
 
14
SELECT * FROM t4;
 
15
c1
 
16
Ann
 
17
Alice
 
18
Bob
 
19
Brian
 
20
ALTER TABLE t2 ENGINE=InnoDB;
 
21
SELECT * FROM t4;
 
22
ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
 
23
DELETE FROM t2 LIMIT 1;
 
24
SELECT * FROM t4;
 
25
ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
 
26
INSERT INTO t4 VALUES ('Beware');
 
27
ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
 
28
SELECT * FROM t4;
 
29
ERROR HY000: Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist
 
30
SELECT * FROM t2;
 
31
c1
 
32
Brian
 
33
SELECT * FROM t1;
 
34
c1
 
35
Ann
 
36
Alice
 
37
DROP TABLE t1, t2, t3, t4, t5;