Skip to content

fix: prevent updateBatch with existing where conditions#10236

Open
michalsn wants to merge 1 commit into
codeigniter4:developfrom
michalsn:fix/updateBatch
Open

fix: prevent updateBatch with existing where conditions#10236
michalsn wants to merge 1 commit into
codeigniter4:developfrom
michalsn:fix/updateBatch

Conversation

@michalsn
Copy link
Copy Markdown
Member

Description
This PR fixes a bug where updateBatch() could be called after Query Builder where() conditions, even though that chaining is not supported.

Fixes #10234

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value (without duplication)
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@michalsn michalsn added the bug Verified issues on the current code behavior or pull requests that will fix them label May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Verified issues on the current code behavior or pull requests that will fix them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: updateBatch() silently ignores chained where() conditions, creating unsafe broad-update footgun

3 participants