Description
Query
SELECT CASE WHEN 1+1=3 THEN 7+7 WHEN 2+2=5 THEN 8+8 END FROM scratch
The above parses into the following incorrect JSON representation:
{"FROM":[{"AS":"scratch"}],"WHAT":[["CASE",null,["=",["+",1,1],3],["+",7,7],["=",["+",2,2],5],["+",8,8]]]}
|
Instead of the expected
{"FROM":[{"AS":"scratch"}],"WHAT":[["CASE",["=",["+",1,1],3],["+",7,7],["=",["+",2,2],5],["+",8,8]]]}
|