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.
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:This is because MySQL does not allow you to execute an
UPDATE
orINSERT
on the same table where a result from aSELECT
is still buffered. To fix this we first need to fetch all the records of the previousSELECT
and then traverse these fetched records instead.