Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CASE Statement Not Printed Correctly #191

Open
dey4ss opened this issue Sep 20, 2021 · 0 comments
Open

CASE Statement Not Printed Correctly #191

dey4ss opened this issue Sep 20, 2021 · 0 comments

Comments

@dey4ss
Copy link
Member

dey4ss commented Sep 20, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant