Hi!
Martin Hansson wrote:
> #At file:///data0/martin/bzrroot/bug59173/5.1-commit/ based on
> revid:vasil.dimov@stripped
>
> 3539 Martin Hansson 2011-01-18
> Bug#59173: Failure to handle DATE(TIME) values where Year, Month or Day is
> ZERO
>
> [[...]]
>
> modified:
> mysql-test/r/type_datetime.result
> mysql-test/t/type_datetime.test
> sql/item_cmpfunc.cc
> === modified file 'mysql-test/r/type_datetime.result'
> [[...]]
>
> === modified file 'mysql-test/t/type_datetime.test'
> [[...]]
>
> === modified file 'sql/item_cmpfunc.cc'
> --- a/sql/item_cmpfunc.cc 2010-12-28 23:47:05 +0000
> +++ b/sql/item_cmpfunc.cc 2011-01-18 07:47:59 +0000
> @@ -913,7 +913,7 @@ int Arg_comparator::set_cmp_func(Item_re
> cache_converted_constant can't be used here because it can't
> correctly convert a DATETIME value from string to int representation.
> */
> - Item_cache_int *cache= new Item_cache_int();
> + Item_cache_int *cache= new Item_cache_int(MYSQL_TYPE_DATETIME);
> /* Mark the cache as non-const to prevent re-caching. */
> cache->set_used_tables(1);
> if (!(*a)->is_datetime())
>
The copyright year must be updated to 2011.
Regards,
Jörg
--
Joerg Bruehe, MySQL Build Team, joerg.bruehe@stripped
(+49 30) 417 01 487
ORACLE Deutschland B.V. & Co. KG, Komturstrasse 18a, D-12099 Berlin
Geschaeftsfuehrer: Juergen Kunz, Marcel v.d. Molen, Alexander v.d. Ven
Amtsgericht Muenchen: HRA 95603