hyrise/sql-parser

`CASE` Statement Not Printed Correctly

dey4ss opened this issue · 0 comments

Consider the following SQL query:

SELECT CASE
    WHEN a < 1 THEN 1 
    WHEN a < 2 THEN 2
    ELSE 3
END;

When parsing the query with 'example', this is the console output:

Parsed successfully!
Number of statements: 1
SelectStatement
	Fields:
		CASE
			3  

Only the ELSE case is printed, not the actual case branches.
Referencing #113