[MDEV-3672] LP:1034131 - select unix_timestamp('0000-00-00') returns NULL instead of 0 Created: 2012-08-07 Updated: 2012-10-04 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Sergiy Tytarenko (Inactive) | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
MariaDB 5.3.7 returns NULL instead of expected 0 for the the following query: MariaDB [(none)]> select unix_timestamp('0000-00-00');
------------------------------
------------------------------ Replacing MariaDB with MySQL 5.1 (Percona SQL server) returns expected 0 as in MySQL 5.0 mysql> select unix_timestamp('0000-00-00');
------------------------------
------------------------------ |
| Comments |
| Comment by Elena Stepanova [ 2012-08-07 ] |
|
Re: select unix_timestamp('0000-00-00') returns NULL instead of 0 This is intentional and documented behavior: http://kb.askmonty.org/en/unix_timestamp/ |
| Comment by Rasmus Johansson (Inactive) [ 2012-08-07 ] |
|
Launchpad bug id: 1034131 |