[MDEV-21267] UNIX_TIMESTAMP(datetime'0000-00-00 00:00:00') returns NULL Created: 2019-12-10  Updated: 2020-02-14  Resolved: 2020-02-14

Status: Closed
Project: MariaDB Server
Component/s: OTHER
Affects Version/s: 10.4.6
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Alexander Matyushkin Assignee: Unassigned
Resolution: Not a Bug Votes: 0
Labels: datetime, need_feedback, timestamp
Environment:

Windows 7



 Description   

When I call UNIX_TIMESTAMP(datetime'0000-00-00 00:00:00'), it returns NULL



 Comments   
Comment by Elena Stepanova [ 2020-01-13 ]

It seems reasonable (and documented). What would you expect it to return instead?

Generated at Thu Feb 08 09:05:51 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.