diff options
author | svoj@mysql.com/april.(none) <> | 2006-09-20 01:40:59 +0500 |
---|---|---|
committer | svoj@mysql.com/april.(none) <> | 2006-09-20 01:40:59 +0500 |
commit | c0ebc0fb2ab02470c9e715386e3dd32db8c33114 (patch) | |
tree | dd33b5bc922fdbbd7b0aba0317f1fa251a8787e2 /mysql-test/t/merge.test | |
parent | 43097593e36c32bc5eac2befb0a9133194feb882 (diff) | |
download | mariadb-git-c0ebc0fb2ab02470c9e715386e3dd32db8c33114.tar.gz |
BUG#10974 - No error message if merge table based on union of innodb, memory
Fixed confusing error message from the storage engine when
it fails to open underlying table. The error message is issued
when a table is _opened_ (not when it is created).
Diffstat (limited to 'mysql-test/t/merge.test')
-rw-r--r-- | mysql-test/t/merge.test | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/mysql-test/t/merge.test b/mysql-test/t/merge.test index a723443b395..93eda3aad82 100644 --- a/mysql-test/t/merge.test +++ b/mysql-test/t/merge.test @@ -47,9 +47,9 @@ show create table t3; # The following should give errors create table t4 (a int not null, b char(10), key(a)) engine=MERGE UNION=(t1,t2); ---error 1016 +--error 1168 select * from t4; ---error 1016 +--error 1168 alter table t4 add column c int; # @@ -376,4 +376,18 @@ select * from t3; check table t1, t2; drop table t1, t2, t3; +# +# BUG#10974 - No error message if merge table based on union of innodb, +# memory +# +CREATE TABLE t1(a INT) ENGINE=MEMORY; +CREATE TABLE t2(a INT) ENGINE=MERGE UNION=(t1); +--error 1168 +SELECT * FROM t2; +DROP TABLE t1, t2; +CREATE TABLE t2(a INT) ENGINE=MERGE UNION=(t3); +--error 1168 +SELECT * FROM t2; +DROP TABLE t2; + # End of 4.1 tests |