summaryrefslogtreecommitdiff
path: root/mysql-test/t/partition.test
diff options
context:
space:
mode:
authorunknown <mikael@dator6.(none)>2008-01-28 22:05:25 +0100
committerunknown <mikael@dator6.(none)>2008-01-28 22:05:25 +0100
commitbb091abb145f89e2332a5b49cbc221793bce3452 (patch)
tree4b0273ce5af7e1cbf67c72480e876a4ff2c115a7 /mysql-test/t/partition.test
parent4bacd53715ac860c6ba2d9c148f87d22cae9c62a (diff)
downloadmariadb-git-bb091abb145f89e2332a5b49cbc221793bce3452.tar.gz
BUG#33182: Disallow division due to div_precision_increment problems
mysql-test/r/partition.result: New test case to validate that '/' is no longer allowed, only integer division is allowed mysql-test/t/partition.test: New test case to validate that '/' is no longer allowed, only integer division is allowed sql/item_func.h: +,-,*, mod is allowed / is disallowed
Diffstat (limited to 'mysql-test/t/partition.test')
-rw-r--r--mysql-test/t/partition.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/t/partition.test b/mysql-test/t/partition.test
index 23d6c5f8865..7ca6f0f55d6 100644
--- a/mysql-test/t/partition.test
+++ b/mysql-test/t/partition.test
@@ -14,6 +14,10 @@
drop table if exists t1;
--enable_warnings
+--error ER_PARTITION_FUNCTION_IS_NOT_ALLOWED
+create table t1 (a int) partition by list ((a/3)*10 div 1)
+(partition p0 values in (0), partition p1 values in (1));
+
#
# Bug #30695: An apostrophe ' in the comment of the ADD PARTITION causes the Server to crash.
#