From: Peter Zaitsev Date: July 27 2000 12:38pm Subject: Re: Query with having does not work properly. List-Archive: http://lists.mysql.com/mysql/45652 Message-Id: <00d701bff7c7$99214430$0b04a8c0@spylog.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit > Your patch looks ok, but I have now split the date add/sub code > to make it faster and shorter; This will be in 3.23.22 (I don't > submit a patch now as I want to test this throughly before releasing it!) I'm not shure if this is allready a source of this problems, but currently such thing is happening: mysql> select date_add(0, interval 7 day)<20000101; +--------------------------------------+ | date_add(0, interval 7 day)<20000101 | +--------------------------------------+ | NULL | +--------------------------------------+ 1 row in set (0.01 sec) mysql> select 0