diff options
author | Martin Hansson <martin.hansson@oracle.com> | 2011-01-19 15:09:32 +0100 |
---|---|---|
committer | Martin Hansson <martin.hansson@oracle.com> | 2011-01-19 15:09:32 +0100 |
commit | 616e2227ccbda30d4fd7ad34beee0da00e4aa933 (patch) | |
tree | feae43ad85767b6832ddf9e45f72a8bc880e92d1 /sql-bench | |
parent | ff7df1d872030c7e89dd3289f17997999e3f22d9 (diff) | |
download | mariadb-git-616e2227ccbda30d4fd7ad34beee0da00e4aa933.tar.gz |
Bug#59173: Failure to handle DATE(TIME) values where Year, Month or Day is
ZERO
When dates are represented internally as strings, i.e. when a string constant
is compared to a date value, both values are converted to long integers,
ostensibly for fast comparisons. DATE typed integer values are converted to
DATETIME by multiplying by 1,000,000 (each digit pair representing hour,
minute and second, respectively). But the mechanism did not distuinguish
cached INTEGER values, already in correct format, from newly converted
strings.
Fixed by marking the INTEGER cache as being of DATETIME format.
Diffstat (limited to 'sql-bench')
0 files changed, 0 insertions, 0 deletions