-
Notifications
You must be signed in to change notification settings - Fork 689
Add regression test for DELETE without WHERE clause (issue #856) #2190
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
Conversation
Co-authored-by: mathiasrw <1063454+mathiasrw@users.noreply.github.com>
|
Run yarn test-format-all |
Co-authored-by: mathiasrw <1063454+mathiasrw@users.noreply.github.com>
mathiasrw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Fix DELETE statement issue - Test and Verification
Findings
The issue reported in #856 appears to have been already fixed in the current codebase:
alasqlparser.jison(lines 1775-1776) supportsDELETE FROM Tablewithout WHERE clausesrc/72delete.js(lines 108-136) handles the no-WHERE case correctlyThe workaround mentioned (
DELETE FROM table WHERE 1=1) is no longer necessary.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.