note 11851 added to function.odbc-connect.php

From: Date: Fri, 09 Mar 2001 18:26:05 +0000
Subject: note 11851 added to function.odbc-connect.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-12115@lists.php.net to get a copy of this message
After much testing, and I think supported by a comment I found in the code, I have come to a disturbing conclusion: odbc_connect() in PHP4.04pl1 is really an odbc_pconnect(), with all the implications for transaction scoping. Specifically, each time you call odbc_connect( "X", "" "" ), you will get the same physical ODBC Connection, and odbc_commit() and odbc_rollback() will affect all copies. The only solution I could find was to use several different DSNs to access the database. http://www.php.net/manual/en/function.odbc-connect.php

« previous php.notes (#12115) next »