Commit 40b53eab authored by ingo@mysql.com's avatar ingo@mysql.com

Bug#10224 - ANALYZE TABLE crashing with simultaneous CREATE ... SELECT statement.

After merge fix.
parent c4205995
...@@ -563,11 +563,12 @@ select * from t2; ...@@ -563,11 +563,12 @@ select * from t2;
b b
1 1
drop table t1,t2; drop table t1,t2;
use test;
create table t1 (a int); create table t1 (a int);
create table t1 select * from t1; create table t1 select * from t1;
INSERT TABLE 't1' isn't allowed in FROM table list ERROR HY000: You can't specify target table 't1' for update in FROM clause
create table t2 union = (t1) select * from t1; create table t2 union = (t1) select * from t1;
INSERT TABLE 't1' isn't allowed in FROM table list ERROR HY000: You can't specify target table 't1' for update in FROM clause
flush tables with read lock; flush tables with read lock;
unlock tables; unlock tables;
drop table t1; drop table t1;
...@@ -467,6 +467,8 @@ drop table t1,t2; ...@@ -467,6 +467,8 @@ drop table t1,t2;
# This tests two additional possible errors and a hang if # This tests two additional possible errors and a hang if
# an improper fix is present. # an improper fix is present.
# #
connection default;
use test;
create table t1 (a int); create table t1 (a int);
--error 1093 --error 1093
create table t1 select * from t1; create table t1 select * from t1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment