summaryrefslogtreecommitdiff
path: root/mysql-test/t/key.test
diff options
context:
space:
mode:
authorunknown <gluh@gluh.mysql.r18.ru>2004-10-26 12:16:35 +0400
committerunknown <gluh@gluh.mysql.r18.ru>2004-10-26 12:16:35 +0400
commit1ff580febc5746b8bbce155632456db4865af81b (patch)
treeee7607365ec1cdcb6805ce284c0d9f5b1c47a982 /mysql-test/t/key.test
parentdc734355e6c6f5563b4a80b23efce660d66c93c7 (diff)
downloadmariadb-git-1ff580febc5746b8bbce155632456db4865af81b.tar.gz
Fix for bug #6166: index prefix length of 0 not rejected
Diffstat (limited to 'mysql-test/t/key.test')
-rw-r--r--mysql-test/t/key.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/t/key.test b/mysql-test/t/key.test
index 662baa5ea9d..4be34cac30e 100644
--- a/mysql-test/t/key.test
+++ b/mysql-test/t/key.test
@@ -285,3 +285,14 @@ check table t1;
drop table t1;
+#
+# Bug 6166: index prefix length of 0 not rejected
+#
+# this test should fail in 5.0
+# to fix it, remove #ifdef in
+# file sql_yacc.yy(key_part)
+# create dedicated error code for this and
+# and change my_printf_error() to my_error
+
+--error 1105
+create table t1 (c char(10), index (c(0)));