Skip to content
This repository was archived by the owner on Jan 1, 2025. It is now read-only.

Fix UpgradeHandler for Contao 4.9+ #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fritzmg
Copy link

@fritzmg fritzmg commented Jun 15, 2022

Since Contao 4.9.0 the result within \Contao\Database\Result is buffered. This leads to the following error when updating from an older version of the extension to a newer one:

Cannot execute queries while other unbuffered queries are active.

This is because MySQL does not allow you to execute an UPDATE or INSERT on the same table where a result from a SELECT is still buffered. To fix this we first need to fetch all the records of the previous SELECT and then traverse these fetched records instead.

@fGuix
Copy link

fGuix commented Jul 26, 2022

@delahaye any chance this pull requests might be merge ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants