You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using dev-main, but this fix still doesn't work, except if I add autocommit="true to pdosqlexec.
so this is NOT working:
<pdosqlexecurl="${db.pdo.driver}:host=${db.host}"userId="${db.user}"password="${db.password}"onerror="abort">
DROP DATABASE IF EXISTS `${call.db.name}`;
CREATE DATABASE `${call.db.name}`;
</pdosqlexec>
this is working (enabling autocommit):
<pdosqlexecurl="${db.pdo.driver}:host=${db.host}"userId="${db.user}"password="${db.password}"autocommit="true"onerror="abort">
DROP DATABASE IF EXISTS `${call.db.name}`;
CREATE DATABASE `${call.db.name}`;
</pdosqlexec>
But I would assume, that this is still not as expected. The drop and create should work no matter if autocommit is on or off.
Describe the bug
Since the PHP 8 update having an xml block for pdosqlexec with a transaction will trigger the following error message upon building
Steps To Reproduce
Having a block like the following will trigger it
Expected behavior
It should run the query without any warnings as pre-PHP8.
Additional context
This seems to be a known issue with other packages that run migrations or provide DB abstraction layers.
doctrine/migrations#1104
yiisoft/yii2#18406
The text was updated successfully, but these errors were encountered: