-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP 8.0 Upgrade started throwing "There is no active transaction" #201
Comments
Root cause here: Quick & dirty way to back behavior like before php 8.x You need something like that, patch content of file Zend/Db/Adapter/Pdo/Abstract.php
|
This is applies only for PDO? What's about mysqli? |
yep, about issue |
That's a good fix! Can this be please added to master branch? For now I just added overwrite in my composer file:
|
Anyone to create PR on this? |
i'm here :D solution above. i'm thinking about write test case to cover this case, will create PR soon |
As other frameworks also reported the same issue: doctrine/migrations#1202
I am facing this issue in Zend as well.
CREATE TABLE IF NOT EXISTS
schema_update
(id_schema_update
INT UNSIGNED NOT NULL AUTO_INCREMENT ,module
VARCHAR(25) NOT NULL ,file
VARCHAR(255) NOT NULL ,duration
int(10) NOT NULL COMMENT 'Duration in seconds that the migration takes executing',created_at
TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ,statements
TEXT DEFAULT NULL,PRIMARY KEY (
id_schema_update
)) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
Migration failed:
There is no active transaction
#0 /vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(290): PDO->commit()
#1 /vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Abstract.php(484): Zend_Db_Adapter_Pdo_Abstract->_commit()
#2 /library/Shm/Dao/Transaction.php(119): Zend_Db_Adapter_Abstract->commit()
#3 /application/modules/ext/maintenance/models/SchemaUpdate.php(207): Shm_Dao_Transaction->commit()
#4 /application/modules/ext/maintenance/models/SchemaUpdate.php(107): Maintenance_Model_SchemaUpdate->runMigrations(true)
Any help is much appreciated.
The text was updated successfully, but these errors were encountered: