[MDEV-3375] LP:737111 - Different behavior for TIMESTAMPADD with 0000-00-00 argument in 5.1-micro Created: 2011-03-17  Updated: 2015-02-02  Resolved: 2012-10-04

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Philip Stoev (Inactive) Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug737111.xml    

 Description   

In 5.1-micro , applying TIMESTAMPADD on a column that contains a value of "0000-00-00" returns "0000-00-00". In mysql-5.1, it returns NULL.

Test case:

CREATE TABLE t1 (f1 date);
INSERT INTO t1 VALUES ('0000-00-00');

SELECT TIMESTAMPADD( WEEK, 1, f1 ) FROM t1;



 Comments   
Comment by Rasmus Johansson (Inactive) [ 2011-10-28 ]

Launchpad bug id: 737111

Generated at Thu Feb 08 06:48:10 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.