Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
The following query fails with syntax error
SELECT
CASE WHEN get_year(current_date()) > 0 THEN "abc" ELSE "def" END LIKE "a%" as v1
The workaround is to put parentheses around CASE expression: (CASE ...) LIKE ...