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

Support INSERT IGNORE in MySql and GenericDialect #1004

Merged
merged 5 commits into from
Oct 24, 2023
Merged

Support INSERT IGNORE in MySql and GenericDialect #1004

merged 5 commits into from
Oct 24, 2023

Conversation

emin100
Copy link
Contributor

@emin100 emin100 commented Oct 17, 2023

SQL: INSERT IGNORE INTO tasks (title, priority) VALUES ('Test Some Inserts', 1)
ERROR: sql parser error: Expected SELECT, VALUES, or a subquery in the query body, found: INTO at Line: 1, Column 15

emin100 and others added 3 commits October 17, 2023 09:04
SQL: INSERT IGNORE INTO tasks (title, priority) VALUES ('Test Some Inserts', 1)
ERROR:  sql parser error: Expected SELECT, VALUES, or a subquery in the query body, found: INTO at Line: 1, Column 15
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution @emin100 -- this PR fails a CI check

I made a PR with a proposed fix that targets this branch -- please give it a look: https://github.com/emin100/sqlparser-rs/pull/1

src/parser/mod.rs Outdated Show resolved Hide resolved
@alamb alamb changed the title Mysql INSERT IGNORE support added. Support INSERT IGNORE in MySql and GenericDialect Oct 23, 2023
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @emin100

@alamb alamb merged commit 86aa1b9 into apache:main Oct 24, 2023
10 checks passed
serprex pushed a commit to serprex/sqlparser-rs that referenced this pull request Nov 6, 2023
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