Only set WHERE filters on delete() if conditions are provided #51
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
vlw/php-mysql!51
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/51/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR fixes a bug where if no conditions are passed to
MySQL->from("table")->delete(), the generated query will look like this:This is obviously invalid SQL syntax. This PR only adds the
WHEREkeyword and rules if conditions have been supplied to eitherwhere()or withdelete([])Again.. this PR is actually merged (I am getting kind of tired of this Codeberg/Forgejo bug).
Pull request closed