php - What causes a rollback failed error in mySQL? -
I get the following error when I try to rollback.
Rollback failure is not an active transaction.
I searched this problem and found some suggestions that recommend disabling the AutoCommit setting. But I'm sure how to do it. Is there any other reason for the above error? I am using MYSQL and Zend and my php.ini file is loading the necessary drivers.
MySQL works in autocommit by default. You can turn it off:
$ connection-> Set properties (Doctrine_Core :: ATTR_AUTOCOMMIT, incorrect);
I have another idea that you have not started the transaction (which should disable the autocommit in the doctor):
$ connection- > Gt; Starting restriction ();
Comments
Post a Comment