Bug #66528 [Asn->Csd]: No PDOException or errorCode if database becomes unavailable before PDO::commit

From: Date: Wed, 28 Oct 2020 11:19:04 +0000
Subject: Bug #66528 [Asn->Csd]: No PDOException or errorCode if database becomes unavailable before PDO::commit
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229971@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66528&edit=1 ID: 66528 Updated by: nikic@php.net Reported by: fk at florian-kaiser dot net Summary: No PDOException or errorCode if database becomes unavailable before PDO::commit -Status: Assigned +Status: Closed Type: Bug Package: PDO MySQL Operating System: Debian Linux PHP Version: 7.3 Assigned To: nikic Block user comment: N Private report: N New Comment: Automatic comment on behalf of nikita.ppv@gmail.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=68dcaa29d8a2d51f0fed5fde9f3543a1338bfe44 Log: Fixed bug #66528 Previous Comments: ------------------------------------------------------------------------ [2020-08-28 12:31:09] cmb@php.net Related To: Bug #79872 ------------------------------------------------------------------------ [2019-04-28 13:54:30] cmb@php.net Something like the commit-einfo patch would set the error info for commits, but rollbacks and autocommits and maybe more seem to need an analogous fix. Wrt. additional warnings: I'm not sure how to handle these. Maybe mysqlnd shouldn't raise them in the first place. ------------------------------------------------------------------------ [2019-04-28 13:50:38] cmb@php.net The following patch has been added/updated: Patch Name: commit-einfo Revision: 1556459438 URL: https://bugs.php.net/patch-display.php?bug=66528&patch=commit-einfo&revision=1556459438 ------------------------------------------------------------------------ [2019-04-27 14:44:17] fk at florian-kaiser dot net Any news on this? Bug is still present in latest PHP 7.3, it's really time this gets fixed. What can we do to speed this up? ------------------------------------------------------------------------ [2019-03-16 15:55:38] jonathan dot lopes at educlever dot com The same lack of PDOException or error is visible for a conflict resolution on the PDO::COMMIT in a galera environment : no "Deadlock found when trying to get lock; try restarting transaction" feedback. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=66528 -- Edit this bug report at https://bugs.php.net/bug.php?id=66528&edit=1

« previous php.bugs (#229971) next »