summaryrefslogtreecommitdiff
path: root/mysql-test/t/long_tmpdir.test
diff options
context:
space:
mode:
authorunknown <kaa@polly.local>2007-06-11 23:06:20 +0400
committerunknown <kaa@polly.local>2007-06-11 23:06:20 +0400
commit1c4ab3106e7b640e5a277ee03e5f275c1699ca17 (patch)
treeaa007a7dd4859ebf329bf46e8d029c34ec9fed68 /mysql-test/t/long_tmpdir.test
parent3ac87034ca389be09ce80d982f0e13f653f98cb4 (diff)
downloadmariadb-git-1c4ab3106e7b640e5a277ee03e5f275c1699ca17.tar.gz
Fix for bug #29015 "Stack overflow in processing temporary table name when tmpdir path is long"
In create_tmp_table() don't set full table path as a table name. Other code assumes table names to not exceed NAME_LEN bytes. sql/sql_select.cc: In create_tmp_table() don't set full table path as a table name. Other code assumes table names to not exceed NAME_LEN bytes. mysql-test/r/long_tmpdir.result: Added testcase for bug #29015 "Stack overflow in processing temporary table name when tmpdir path is long" mysql-test/t/long_tmpdir-master.opt: Added testcase for bug #29015 "Stack overflow in processing temporary table name when tmpdir path is long" mysql-test/t/long_tmpdir-master.sh: Added testcase for bug #29015 "Stack overflow in processing temporary table name when tmpdir path is long" mysql-test/t/long_tmpdir.test: Added testcase for bug #29015 "Stack overflow in processing temporary table name when tmpdir path is long"
Diffstat (limited to 'mysql-test/t/long_tmpdir.test')
-rw-r--r--mysql-test/t/long_tmpdir.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/long_tmpdir.test b/mysql-test/t/long_tmpdir.test
new file mode 100644
index 00000000000..cf0bed29918
--- /dev/null
+++ b/mysql-test/t/long_tmpdir.test
@@ -0,0 +1,9 @@
+#
+# Bug #29015: Stack overflow in processing temporary table name when tmpdir path
+# is long
+#
+
+create view v1 as select table_name from information_schema.tables;
+drop view v1;
+
+--echo End of 5.0 tests