Bug #15628 Updated: Multiple Connections not allowed
| From: | php-bugs at lists dot php dot net | Date: | Fri, 19 Jul 2002 05:00:11 +0000 |
| Subject: | Bug #15628 Updated: Multiple Connections not allowed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-14592@lists.php.net to get a copy of this message | ||
ID: 15628
Updated by: php-bugs@lists.php.net
Reported By: ekonig@yahoo.com
-Status: Feedback
+Status: No Feedback
Bug Type: Informix related
Operating System: SunSolaris 8 Sparc
PHP Version: 4.1.1
New Comment:
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2002-06-18 05:30:13] derick@php.net
can you please provide a patch for this?
Derick
------------------------------------------------------------------------
[2002-04-19 14:35:27] thomas.hoppe@daimlerchrysler-bank.com
I have the exactly same problem with Oracle!!!
------------------------------------------------------------------------
[2002-02-22 12:25:42] roger@wzero.com.br, paulo@tramontina.net
Some information:
SO - Red Hat 7.1 kernel 2.2.12
The file to be edited is ext/informix/ifx.ec
------------------------------------------------------------------------
[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