Skip to content
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

Bug fixed wrong SAVEPOINT name for transactions #96

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

Bug fixed wrong SAVEPOINT name for transactions #96

wants to merge 1 commit into from

Conversation

ozgurg
Copy link

@ozgurg ozgurg commented Jul 7, 2021

Merhaba. Dökümandaki transaction örneğinde rollBack çağırıldığında aşağıdaki hatayı alıyordum.

Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1305 SAVEPOINT trans0 does not exist in /var/www/html/test/vendor/izniburak/pdox/src/Pdox.php:998 Stack trace: #0 /var/www/html/test/vendor/izniburak/pdox/src/Pdox.php(998): PDO->exec('ROLLBACK TO tra...') #1 /var/www/html/test/transaction.php(47): Buki\Pdox->rollBack() #2 {main} thrown in /var/www/html/test/vendor/izniburak/pdox/src/Pdox.php on line 998

Birden fazla SAVEPOINT olabilmesi için transaction ile kullanmak istediğimizde transactionCount artırılıyor/azaltılıyor. Ancak arttırma ve azaltma bölümlerindeki hata yüzünden oluşturulan SAVEPOINT, rollBack yapılamıyordu. Bunu çözdüm.

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

Successfully merging this pull request may close these issues.

1 participant