Skip to content

Conversation

@VinaiRachakonda
Copy link
Contributor

@VinaiRachakonda VinaiRachakonda commented Jul 21, 2021

Addressed bug found in dolthub/dolt#1923

@VinaiRachakonda VinaiRachakonda changed the title add test and fix Delete From support for Empty Table Jul 21, 2021
@andy-wm-arthur
Copy link
Contributor

Something doesn't add up here, why is an emptyTable being returned?

@VinaiRachakonda
Copy link
Contributor Author

VinaiRachakonda commented Jul 21, 2021

I should've left this in WIP because I wanted to think it through again in the morning but the problem is coming from here:

The test case essentially simulates a bad filter (one that has an impossible condition) on a delete query. This was the problem with this issue.

We should just return an empty row iter like mysql, otherwise the delete will error out.

@andy-wm-arthur andy-wm-arthur self-requested a review July 21, 2021 19:59
Copy link
Contributor

@andy-wm-arthur andy-wm-arthur left a comment

Choose a reason for hiding this comment

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

see comment above

@VinaiRachakonda VinaiRachakonda merged commit 3dbae51 into master Jul 21, 2021
@Hydrocharged Hydrocharged deleted the vinai/exit-on-empty-table branch December 8, 2021 07:08
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