Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
Not repeatable in mysql-5.1. In 5.1-micro, BETWEEN expressions that contain a datetime and NULL do not return NULL. Instead, they return FALSE, which is incorrect.
To repeat:
MySQL [test]> SELECT NOW() BETWEEN NULL AND '2011-01-01' ;
-------------------------------------
| NOW() BETWEEN NULL AND '2011-01-01' |
-------------------------------------
| 0 |
-------------------------------------
1 row in set (0.01 sec)
should have returned NULL