Bug #12513 Updated: Automatic Rollback of open transactions in persistent links

From: Date: Sat, 27 Apr 2002 19:52:08 +0000
Subject: Bug #12513 Updated: Automatic Rollback of open transactions in persistent links
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-6293@lists.php.net to get a copy of this message
ID: 12513 Updated by: jimw@php.net Reported By: t.stinner@billiton.de Status: Open -Bug Type: Feature/Change Request +Bug Type: MySQL related Operating System: Linux PHP Version: 4.0.6 New Comment: this is a bug, not a feature request. Previous Comments: ------------------------------------------------------------------------ [2001-08-01 09:07:32] andy@php.net reclassified ------------------------------------------------------------------------ [2001-08-01 09:06:41] t.stinner@billiton.de When using mysql_pconnect() the connection to the database (abviously) persists. This has the site-effect that open transactions at the end of the page request remain open if you do not explicitly commit/rollback the transaction. This can happen very easily if you have an error in your script. The Postgres driver does an automatic rollback at request shutdown, the mysql driver should do the same. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=12513&edit=1

« previous php.bugs (#6293) next »