summaryrefslogtreecommitdiff
path: root/mysql-test/t/partition.test
diff options
context:
space:
mode:
authorunknown <serg@janus.mylan>2007-10-19 12:44:57 +0200
committerunknown <serg@janus.mylan>2007-10-19 12:44:57 +0200
commitbdab4dcefe7ba9ba44a7a8cbc9cd32d282cf3ee6 (patch)
tree502857fa1662bc6d6ef5c558572a204e3b8c57de /mysql-test/t/partition.test
parent0c0558483d42efafe18931e613742b8089547f58 (diff)
parent9014e8e951df75086520fe7c47cb26a299f3b23f (diff)
downloadmariadb-git-bdab4dcefe7ba9ba44a7a8cbc9cd32d282cf3ee6.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.1
into janus.mylan:/usr/home/serg/Abk/mysql-5.1 client/mysqldump.c: Auto merged mysql-test/lib/mtr_report.pl: Auto merged mysql-test/r/innodb_mysql.result: Auto merged sql/sql_lex.cc: Auto merged tests/mysql_client_test.c: Auto merged
Diffstat (limited to 'mysql-test/t/partition.test')
-rw-r--r--mysql-test/t/partition.test20
1 files changed, 20 insertions, 0 deletions
diff --git a/mysql-test/t/partition.test b/mysql-test/t/partition.test
index 42db23dadef..2be2ab83c88 100644
--- a/mysql-test/t/partition.test
+++ b/mysql-test/t/partition.test
@@ -1493,10 +1493,30 @@ ALTER TABLE general_log PARTITION BY RANGE (TO_DAYS(event_time))
(PARTITION p0 VALUES LESS THAN (733144), PARTITION p1 VALUES LESS THAN (3000000));
ALTER TABLE general_log ENGINE = CSV;
SET GLOBAL general_log = default;
+use test;
#
# Bug #27084 partitioning by list seems failing when using case
# BUG #18198: Case no longer supported, test case removed
#
+#
+# Bug #29444: crash with partition refering to table in create-select
+#
+
+create table t2 (b int);
+--error 1054
+create table t1 (b int)
+PARTITION BY RANGE (t2.b) (
+ PARTITION p1 VALUES LESS THAN (10),
+ PARTITION p2 VALUES LESS THAN (20)
+) select * from t2;
+create table t1 (a int)
+PARTITION BY RANGE (b) (
+ PARTITION p1 VALUES LESS THAN (10),
+ PARTITION p2 VALUES LESS THAN (20)
+) select * from t2;
+show create table t1;
+drop table t1, t2;
+
--echo End of 5.1 tests