[MDEV-3267] LP:993103 - Wrong result with LAST_DAY('0000-00-00 00:00:00') IS NULL in WHERE condition Created: 2012-05-02 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: | Igor Babaev | Assignee: | Vladislav Vaintroub |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The following sequence of commands returns incorrect result in MariaDB 5.2: CREATE TABLE t1(a INT) ENGINE=InnoDB; MariaDB [test]> SELECT * FROM t1 WHERE LAST_DAY('0000-00-00 00:00:00') IS NULL; The expected result is:
------
------ (see also bug #13626019 for mysql) |
| Comments |
| Comment by Rasmus Johansson (Inactive) [ 2012-05-10 ] |
|
Launchpad bug id: 993103 |