Open mrigger opened 4 years ago
/bug P2
MySQL also prohibits this expression, potentially because it depends on an sql mode:
mysql> CREATE TABLE t1 (
-> id INT NOT NULL auto_increment,
-> bool TINYINT NOT NULL,
-> PRIMARY KEY (id, bool)
-> )
-> PARTITION BY HASH ((NOT bool BETWEEN -5 AND 5)) PARTITIONS 2;
ERROR 1564 (HY000): This partition function is not allowed
Consider the following statements:
Unexpectedly, the
INSERT
results in an error:MySQL 8.0.19 seems to prohibit the creation of such a table:
I can reproduce this both on a recent master commit (72f457674238d28435b874af2899f7f684140a49) and the 4.0 RC.
Environment: