| Bug #15447 | Partitions: NULL is treated as zero | ||
|---|---|---|---|
| Submitted: | 2 Dec 2005 21:58 | Modified: | 10 Mar 2006 3:10 |
| Reporter: | Peter Gulutzan | ||
| Status: | Closed | ||
| Category: | Server: Partition | Severity: | S3 (Non-critical) |
| Version: | 5.1.4-alpha-debug | OS: | Linux (linux) |
| Assigned to: | Sergey Gluhov | Target Version: | |
[2 Dec 2005 21:58]
Peter Gulutzan
[5 Dec 2005 13:20]
Aleksey Kishkin
verified against latest 5.1 from 5.1-new bk tree (5.1.4-alfha-debug)
[16 Jan 2006 18:24]
Matthias Leich
I have another example, which might be of interest:
CREATE TABLE t1 ( f1 INTEGER, f2 char(20))
PARTITION BY LIST(MOD(f1,2))
( PARTITION part1 VALUES IN (CAST(NULL AS SIGNED INTEGER)),
PARTITION part2 VALUES IN (0),
PARTITION part3 VALUES IN (1));
ERROR HY000: Multiple definition of same constant in list partitioning
Simple experiments with other combinations of values within the
VALUES IN clauses clear reveal, that
"IN (CAST(NULL AS SIGNED INTEGER))"
is treated like
"IN (0)"
BTW: In the moment (16.01.2006) VALUES IN (NULL) fails with
ERROR 42000: VALUES value must be of same type as partition function near
[31 Jan 2006 9:13]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/1920
[7 Mar 2006 12:21]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/3540
[7 Mar 2006 13:32]
Sergey Gluhov
Fixed in 5.1.8
[10 Mar 2006 3:10]
Jon Stephens
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.
If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information
about accessing the source trees is available at
http://www.mysql.com/doc/en/Installing_source_tree.html
Additional info:
Noted incompatible change in 5.1.8 changelog.
Rewrote 5.1 Manual section "How MySQL Partitioning Handles NULL Values" to reflect new
behaviour.
Closed bug report.
