Skip to content

fix: updateColumn() / increment() / decrement() use buildWhereClause()#216

Merged
techmahedy merged 1 commit intodoppar:3.xfrom
techmahedy:techmahedy-3.x
Mar 11, 2026
Merged

fix: updateColumn() / increment() / decrement() use buildWhereClause()#216
techmahedy merged 1 commit intodoppar:3.xfrom
techmahedy:techmahedy-3.x

Conversation

@techmahedy
Copy link
Member

updateColumn() was manually iterating conditions with a hardcoded $condition[1] $condition[2] ? pattern, causing broken SQL and mismatched bindings for any non-simple condition. whereIn, whereNull, whereBetween, and nested wheres all produced incorrect queries. Replaced with buildWhereClause() and manual sequential binding — amount and extra columns bound first, then where bindings, matching the SQL parameter order.

@techmahedy techmahedy added the bug Something isn't working label Mar 11, 2026
@techmahedy techmahedy merged commit eeeebda into doppar:3.x Mar 11, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant