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

Add UPDATE, DELETE support, fix escaped quotes, detect invalid SQL #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nerdrew
Copy link

@nerdrew nerdrew commented Jul 12, 2016

- add UPDATE
- add DELETE FROM
- add LIMIT
- add FOR UPDATE
- add DISTINCT
- add COALESCE function
- fix selecting literals, e.g. (1 + 1)
- refactor racc
- fix escaped quotes (both \' and '')
- better detection of invalid sql (e.g. SELECT1)
@nerdrew
Copy link
Author

nerdrew commented Jul 13, 2016

Ok, punted on splitting into smaller PRs. They conflict too much. Is this change too large to review?

@zanker
Copy link

zanker commented Jul 13, 2016

I can review it, but I couldn't merge it so not sure if the repo owner might find it too big?

@nerdrew
Copy link
Author

nerdrew commented Jul 14, 2016

@cryodex Do you have an opinion?

@nerdrew
Copy link
Author

nerdrew commented Jul 14, 2016

@louismullie Thoughts on this PR?

- fix COALESCE with multiple arguments
- add support for sql functions
- fix 1e1, 1E1 literals: don't match identifiers that start with "e"
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.

2 participants