1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-16 20:23:18 +03:00

BUG#18752: Also handle NULL values in VALUES LESS THAN

This commit is contained in:
mikael@c-4908e253.1238-1-64736c10.cust.bredbandsbolaget.se
2006-04-10 22:29:11 -04:00
parent b57664b7cf
commit bd758e35c0
4 changed files with 17 additions and 0 deletions

View File

@@ -848,4 +848,8 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 PARTITION BY LIST (a) (PARTITION p0 VALUES IN (NULL) ENGINE = MyISAM)
DROP TABLE t1;
CREATE TABLE t1 (a int)
PARTITION BY RANGE(a)
(PARTITION p0 VALUES LESS THAN (NULL));
ERROR 42000: Not allowed to use NULL value in VALUES LESS THAN near '))' at line 3
End of 5.1 tests

View File

@@ -965,4 +965,9 @@ PARTITION BY LIST (a)
SHOW CREATE TABLE t1;
DROP TABLE t1;
--error 1064
CREATE TABLE t1 (a int)
PARTITION BY RANGE(a)
(PARTITION p0 VALUES LESS THAN (NULL));
--echo End of 5.1 tests