Bug #15628 Updated: Multiple Connections not allowed
| From: | roger at wzero dot com dot br | Date: | Fri, 22 Feb 2002 17:25:42 +0000 |
| Subject: | Bug #15628 Updated: Multiple Connections not allowed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-837@lists.php.net to get a copy of this message | ||
ID: 15628
Updated by: roger@wzero.com.br, paulo@tramontina.net
Reported By: ekonig@yahoo.com
Status: Open
Bug Type: Informix related
Operating System: SunSolaris 8 Sparc
PHP Version: 4.1.1
New Comment:
Some information:
SO - Red Hat 7.1 kernel 2.2.12
The file to be edited is ext/informix/ifx.ec
Previous Comments:
------------------------------------------------------------------------
[2002-02-22 12:22:36] roger@wzero.com.br, paulo@tramontina.net
we´ve found the same bug.
This solution worked very well!
Thanks!
------------------------------------------------------------------------
[2002-02-19 14:29:36] ekonig@yahoo.com
Hi,
I would like to report a bug in the Informix module of PHP 4.1.1.
When you try to use more than one connection, the last connection
created is the one that receives every statement, and under this
circumstances you may get a SQLCODE error code -206 when calling
ifx_query as the table may not exist in the current database.
I was debugging the Informix implementation and I found that in the
function ifx_query the following statement is missing:
EXEC SQL set connection :ifx;
before the call of the macro PHP_IFX_CHECK_CONNECTION and the call to
the PREPARE statement. If you add that statement, the funcion ifx_query
works fine.
This function call is needed as every time that you execute the
statement CONNECT TO ... that connection is the active one and the
former connections become dormant. When you want to use one of those
connection, you need to active it again using the statement SET
CONNECTION.
I hope this helps.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15628&edit=1