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

feat: Handle errors for INSERT template #62

Merged
merged 5 commits into from
Aug 7, 2023
Merged

Conversation

viladimiru
Copy link
Contributor

Closes #28

@viladimiru viladimiru self-assigned this Aug 7, 2023
}
;

OptionalParenthesizedColumnListOrError
Copy link
Contributor Author

@viladimiru viladimiru Aug 7, 2023

Choose a reason for hiding this comment

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

Copy link
Collaborator

@NikitaShkaruba NikitaShkaruba left a comment

Choose a reason for hiding this comment

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

Wow, great job!

}
]
}
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

We also need a test case for the next query INSERT INTO table() VALUES(|) (| is a cursor), right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not pretty sure, because if our cursor inside of the VALUES brackets anyway we will have empty context, with errors and without them, because we don't suggest here anything

Copy link
Collaborator

Choose a reason for hiding this comment

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

My bad, you are correct.

@viladimiru viladimiru merged commit c6af390 into main Aug 7, 2023
3 checks passed
@viladimiru viladimiru deleted the 28-handle-errors branch August 7, 2023 11:47
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.

Support column names right after table name in the InsertStatement
2 participants