Open lascarayf opened 6 years ago
Hi @lascarayf I have filed an issue (JSQLParser/JSqlParser#658) with the underlying project that I use for the SQL parsing, and I will see if I can submit a solution to it as well. In the meantime you could use the following work around:
SELECT IF(CASE WHEN 2 > 1 THEN TRUE ELSE FALSE END, 'A', 'B') FROM notifications;
The above statement should work and yield the same result.
Hi @olavloite. I have this error.