Description
In the example query below (redshift):
SELECT CASE WHEN table.columnA IS NOT NULL THEN '' ELSE table.columnA END columnA FROM table where (columnA LIKE '%example%')
When the parser reaches "THEN ''" it considers the second single quote as an escape character so rather than returning the correct string literal which is an empty string '' it returns:
'' ELSE table.columnA END columnA FROM table where (columnA LIKE '
The query is valid on redshift