diff options
| author | Aditya A <aditya.a@oracle.com> | 2013-01-11 16:27:37 +0530 |
|---|---|---|
| committer | Aditya A <aditya.a@oracle.com> | 2013-01-11 16:27:37 +0530 |
| commit | 21bdf213807e467e7638d0504e900070bb1689f5 (patch) | |
| tree | a82490723dd4aa57403d2e658ec57a34b2abb365 /sql/sql_string.cc | |
| parent | 8b41f491c82063382bc76d8a8c266b83b0ab8fe0 (diff) | |
| download | mariadb-git-21bdf213807e467e7638d0504e900070bb1689f5.tar.gz | |
Bug#15843818 PARTITIONING BY RANGE WITH TO_DAYS ALWAYS
INCLUDES FIRST PARTITION WHEN PRUNING
PROBLEM
-------
TO_DAYS()/TO_SECONDS() can return NULL for invalid dates which
was stored in the first partition ,therefore the first partition
was always included for the scan when range was specified.
FIX
---
The fix is a small optimization which we have included ,which will
prune the scanning of NULL/first partition if the dates specified
in the range are valid and in the same year and month . TO_SECONDS()
function is not supported in 5.1 so removed it from the fix and test
scripts for mysql-5.1 version.
Diffstat (limited to 'sql/sql_string.cc')
0 files changed, 0 insertions, 0 deletions
