summaryrefslogtreecommitdiff
path: root/mysql-test/t/create.test
diff options
context:
space:
mode:
authorunknown <ingo@mysql.com>2005-06-01 11:15:21 +0200
committerunknown <ingo@mysql.com>2005-06-01 11:15:21 +0200
commit046ced266a4797fa133961fe51c73a33b94504af (patch)
tree7a8b8f55be2cc9a973bed05c6c890d7d4cd3ca38 /mysql-test/t/create.test
parentabbdab6ac9be805170ebdae4d0c68dc9c2ab9de4 (diff)
parent10481cd0368cb2ae07efd0f05c65748c3046eff8 (diff)
downloadmariadb-git-046ced266a4797fa133961fe51c73a33b94504af.tar.gz
Bug#10224 - ANALYZE TABLE crashing with simultaneous CREATE ... SELECT statement.
Manual merge from 4.1. mysql-test/r/create.result: Auto merged mysql-test/t/create.test: Auto merged sql/mysql_priv.h: Auto merged sql/sql_handler.cc: Auto merged sql/sql_insert.cc: Auto merged sql/sql_yacc.yy: Auto merged
Diffstat (limited to 'mysql-test/t/create.test')
-rw-r--r--mysql-test/t/create.test30
1 files changed, 30 insertions, 0 deletions
diff --git a/mysql-test/t/create.test b/mysql-test/t/create.test
index d4733e6dc7e..d9712a28788 100644
--- a/mysql-test/t/create.test
+++ b/mysql-test/t/create.test
@@ -471,3 +471,33 @@ insert into t2 values ();
select * from t1;
select * from t2;
drop table t1,t2;
+
+#
+# Bug#10224 - ANALYZE TABLE crashing with simultaneous
+# CREATE ... SELECT statement.
+# This tests two additional possible errors and a hang if
+# an improper fix is present.
+#
+connection default;
+use test;
+create table t1 (a int);
+--error 1093
+create table t1 select * from t1;
+--error 1093
+create table t2 union = (t1) select * from t1;
+flush tables with read lock;
+unlock tables;
+drop table t1;
+
+#
+# Bug#10413: Invalid column name is not rejected
+#
+--error 1103
+create table t1(column.name int);
+--error 1103
+create table t1(test.column.name int);
+--error 1102
+create table t1(xyz.t1.name int);
+create table t1(t1.name int);
+create table t2(test.t2.name int);
+drop table t1,t2;