Skip to content

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

Open
nerdrew wants to merge 2 commits into
cryodex:masterfrom
nerdrew:master
Open

Add UPDATE, DELETE support, fix escaped quotes, detect invalid SQL#4
nerdrew wants to merge 2 commits into
cryodex:masterfrom
nerdrew:master

Conversation

@nerdrew

@nerdrew nerdrew commented Jul 12, 2016

Copy link
Copy Markdown

- 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

nerdrew commented Jul 13, 2016

Copy link
Copy Markdown
Author

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

@zanker

zanker commented Jul 13, 2016

Copy link
Copy Markdown

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

@nerdrew

nerdrew commented Jul 14, 2016

Copy link
Copy Markdown
Author

@cryodex Do you have an opinion?

@nerdrew

nerdrew commented Jul 14, 2016

Copy link
Copy Markdown
Author

@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