diff options
author | unknown <ram@gw.mysql.r18.ru> | 2004-08-27 16:43:01 +0500 |
---|---|---|
committer | unknown <ram@gw.mysql.r18.ru> | 2004-08-27 16:43:01 +0500 |
commit | bf268802916d85f7fa4cb832a409e20ab404effa (patch) | |
tree | 1e95be4884721f8f8d9d9829c08f92498d931b50 /mysql-test/t/merge.test | |
parent | 1176c175533dd23ec39f9c162976fcb2be881dfd (diff) | |
download | mariadb-git-bf268802916d85f7fa4cb832a409e20ab404effa.tar.gz |
A fix (Bug #5232: CREATE TABLE ... SELECT can deadlock itself).
Diffstat (limited to 'mysql-test/t/merge.test')
-rw-r--r-- | mysql-test/t/merge.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/t/merge.test b/mysql-test/t/merge.test index 76382a9cd99..57770dc0a0b 100644 --- a/mysql-test/t/merge.test +++ b/mysql-test/t/merge.test @@ -250,3 +250,17 @@ select * from t3 where x = 1 and y < 5 order by y; # Bug is that followng query returns empty set while it must be same as above select * from t3 where x = 1 and y < 5 order by y desc; drop table t1,t2,t3; + +# +# Bug#5232: CREATE TABLE ... SELECT +# + +create table t1 (a int); +create table t2 (a int); +insert into t1 values (0); +insert into t2 values (1); +--error 1093 +create table t3 engine=merge union=(t1, t2) select * from t1; +--error 1093 +create table t3 engine=merge union=(t1, t2) select * from t2; +drop table t1, t2; |