ID:               15628
 Updated by:       [EMAIL PROTECTED], [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 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] [EMAIL PROTECTED], [EMAIL PROTECTED]

we´ve found the same bug.
This solution worked very well!
Thanks!

------------------------------------------------------------------------

[2002-02-19 14:29:36] [EMAIL PROTECTED]

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

Reply via email to