note 1550 deleted from function.oci-execute by sixd
| From: | sixd@php.net | Date: | Wed, 11 Nov 2009 00:17:26 +0000 |
| Subject: | note 1550 deleted from function.oci-execute by sixd | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-162727@lists.php.net to get a copy of this message | ||
Note Submitter: jgrosland at buildscape dot com
----
There seems to be some interesting behavior when using OCI_DEFAULT as the second parameter to
ociexecute... once the autocommit behavior is turned off for a connection, it remains off for the
life of that connection.
This tends to be a problem when using OCIPLogon, as a SQL statement may remain outstanding over the
life of many webpages.
This is most problematic when you're doing an update or insert, and a table remains locked
while that connection is waiting for a commit/rollback. Be sure to explicitly commit or rollback if
you use OCI_DEFAULT at any point.