#42794 [Opn->Bgs]: nested ingres_fetch_object dont work

From: Date: Mon, 01 Oct 2007 09:21:43 +0000
Subject: #42794 [Opn->Bgs]: nested ingres_fetch_object dont work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118001@lists.php.net to get a copy of this message
ID: 42794 Updated by: jani@php.net Reported By: V dot Bulov at VAZ dot ru -Status: Open +Status: Bogus Bug Type: Ingres II related Operating System: FC6 PHP Version: 5.2.4 New Comment: This is the wrong place to report bugs in PECL extensions. Use this instead: http://pecl.php.net/bugs/report.php?package=ingres Previous Comments: ------------------------------------------------------------------------ [2007-09-29 06:25:49] V dot Bulov at VAZ dot ru Description: ------------ Why nested ingres_fetch_object dotn work? for examle $link1 = ingres_connect (getenv("Z_NEW"),"kpl","kpl"); $link2 = ingres_connect (getenv("Z_NEW"),"kpl","kpl"); $S1 = ingres_query ( "select * from table1 " ,$link1); while ( $R1 = ingres_fetch_object(INGRES_ASSOC,link1) ) { $S2 = ingres_query ( "select * from table2 where xx = " . $R1->xx" ,$link2); $R2 = ingres_fetch_object(INGRES_ASSOC,link2); } In this case fetch only 1 records from table1. If comments // $R2 = ingres_fetch_object(INGRES_ASSOC,link2); All work true. Why? Where my mistake? Reproduce code: --------------- Why nested ingres_fetch_object dotn work? for examle $link1 = ingres_connect (getenv("Z_NEW"),"kpl","kpl"); $link2 = ingres_connect (getenv("Z_NEW"),"kpl","kpl"); $S1 = ingres_query ( "select * from table1 " ,$link1); while ( $R1 = ingres_fetch_object(INGRES_ASSOC,link1) ) { $S2 = ingres_query ( "select * from table2 where xx = " . $R1->xx" ,$link2); $R2 = ingres_fetch_object(INGRES_ASSOC,link2); } In this case fetch only 1 records from table1. If comments // $R2 = ingres_fetch_object(INGRES_ASSOC,link2); All work true. Why? Where my mistake? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42794&edit=1

« previous php.bugs (#118001) next »