|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-11-08 12:17 UTC] grant dot croker at ingres dot com
[2007-11-12 06:30 UTC] grant dot croker at ingres dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 18:00:01 2025 UTC |
Description: ------------ I wont used nested ingres_fetch_object but after second ingres_fetch_object firs ingres_fetch_object returned false and break from loop Reproduce code: --------------- $link1 = ingres_connect ("kpl","kpl","kpl"); $link2 = ingres_connect ("kpl","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); firs select work true. Expected result: ---------------- select from first and second table Actual result: -------------- select own row from first table and select X-rows from second table