Skip to content

Fix count with unbuffered queries - #19602

Merged
markstory merged 3 commits into
cakephp:5.xfrom
QoboLtd:unbuffered-queries-count
Aug 28, 2026
Merged

markstory merged 3 commits into
cakephp:5.xfrom
QoboLtd:unbuffered-queries-count

Conversation

@nicosp

@nicosp nicosp commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Fixes: SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active.
with unbuffered queries.

An alternative would be to always enable buffered queries in cleanCopy() but it would be a breaking change.

@dereuromark dereuromark added this to the 5.4.2 milestone Aug 26, 2026
@ADmad
ADmad requested a review from markstory August 26, 2026 10:09
Comment thread src/ORM/Query/SelectQuery.php Outdated
@markstory
markstory merged commit 6b2d66a into cakephp:5.x Aug 28, 2026
15 checks passed
@markstory

Copy link
Copy Markdown
Member

Thank you 🎉

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.

5 participants