You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
SET @@sql_mode='NO_UNSIGNED_SUBTRACTION';
CREATETABLEtu (c1 BIGINT UNSIGNED) PARTITION BY RANGE(c1 -10) (
PARTITION p0 VALUES LESS THAN (-5),
PARTITION p1 VALUES LESS THAN (0),
PARTITION p2 VALUES LESS THAN (5),
PARTITION p3 VALUES LESS THAN (10),
PARTITION p4 VALUES LESS THAN (MAXVALUE)
);
2. What did you expect to see? (Required)
create table successfully
3. What did you see instead (Required)
MySQL root@127.0.0.1:test>SET @@sql_mode='NO_UNSIGNED_SUBTRACTION';
-> CREATE TABLE tu (c1 BIGINT UNSIGNED) PARTITION BY RANGE(c1 -10) (
-> PARTITION p0 VALUES LESS THAN (-5),
-> PARTITION p1 VALUES LESS THAN (0),
-> PARTITION p2 VALUES LESS THAN (5),
-> PARTITION p3 VALUES LESS THAN (10),
-> PARTITION p4 VALUES LESS THAN (MAXVALUE)
-> );
Query OK, 0 rows affected
Time: 0.002s
(1563, 'Partition constant is out of partition function domain')
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
create table successfully
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master: 8c25a00
v4.0.12
v5.0.1
The text was updated successfully, but these errors were encountered: