From: Joerg Bruehe Date: January 19 2011 9:10am Subject: Re: bzr commit into mysql-5.1 branch (martin.hansson:3539) Bug#59173 List-Archive: http://lists.mysql.com/commits/129148 Message-Id: <4D36AA98.8090004@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Hi! Martin Hansson wrote: > #At file:///data0/martin/bzrroot/bug59173/5.1-commit/ based on revid:va= sil.dimov@stripped >=20 > 3539 Martin Hansson 2011-01-18 > Bug#59173: Failure to handle DATE(TIME) values where Year, Month = or Day is > ZERO > =20 > [[...]] >=20 > modified: > mysql-test/r/type_datetime.result > mysql-test/t/type_datetime.test > sql/item_cmpfunc.cc > =3D=3D=3D modified file 'mysql-test/r/type_datetime.result' > [[...]] >=20 > =3D=3D=3D modified file 'mysql-test/t/type_datetime.test' > [[...]] >=20 > =3D=3D=3D 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 represen= tation. > */ > - Item_cache_int *cache=3D new Item_cache_int(); > + Item_cache_int *cache=3D 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()) >=20 The copyright year must be updated to 2011. Regards, J=F6rg --=20 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