Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2.2
-
None
Description
Following query is giving wrong result:
SELECT DATE_SUB(CURRENT_DATE,0) as GROUP_BY_FIELD, count (*) as src_cnt from mytable WHERE 1=1 group by DATE_SUB(CURRENT_DATE,0); +-----------------+----------+--+ | group_by_field | src_cnt | +-----------------+----------+--+ | 239 | NULL | +-----------------+----------+--+ 1 row selected (5.175 seconds)