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

Fix for #227 (get_type() doesn't work for queries that use WITH) #228

Merged
merged 2 commits into from
Mar 7, 2016

Conversation

andrew-tipton-cgg
Copy link
Contributor

Here's a quick fix for issue #227 which I recently reported. All of the existing tests still pass and get_type() is now correct for my queries. I'm not 100% happy with the method I used to get the next non-whitespace token... self.token_next(self.token_index(...)) seems pretty obtuse. Is there a better method to use?

andialbrecht added a commit that referenced this pull request Mar 7, 2016
Fix for #227 (get_type() doesn't work for queries that use WITH)
@andialbrecht andialbrecht merged commit 8f39d33 into andialbrecht:master Mar 7, 2016
@andialbrecht
Copy link
Owner

You're right. For now self.token_next(self.token_index(...)) is the way to go - and yes, it's not that smart as it should be ;)

Thanks for the fix!

@andrew-tipton-cgg
Copy link
Contributor Author

Great, thanks for merging!

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

Successfully merging this pull request may close these issues.

None yet

2 participants