-
Notifications
You must be signed in to change notification settings - Fork 243
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
INSERT multiple rows is not supported #162
Comments
I can only confirm this. The insert_statement does not support multiple values: sql-parser/src/parser/bison_parser.y Lines 632 to 638 in 33c0013
To our defense, this is not supported by SQL-92, which we use as orientation, either:
That being said, this is a valuable suggestion and I would support adding it. Due to a lack of resources, adding this might take us a while. External contributions are of course welcomed. |
Thanks for the quick response! I’m not familiar with the standards, so didn’t appreciate this is an extension, although widely supported. I don’t have experience with parsers, but maybe I’ll give it a go and see if I can work out how to support this. |
It might have come in with a newer SQL standard. SQL-92 is just the one that is sufficient for our purposes. I do wish we could upgrade to a more comprehensive support of a newer version. |
I also hope hyrise has this feature, it is usefull. |
A SQL statement to insert multiple rows into a table fails parsing
INSERT INTO links (url, name) VALUES ('https://www.google.com','Google'), ('https://www.yahoo.com','Yahoo'),('https://www.bing.com','Bing');
Produces an error at the end of the first pair of parentheses in the VALUES clause
hsql::SQLParserResult::errorColumn_ == 73
hsql::SQLParserResult::errorMsg_ == "syntax error, unexpected ',', expecting end of file"
The text was updated successfully, but these errors were encountered: