Skip to content

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