|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-05-07 05:10 UTC] derick@php.net
[2002-08-13 19:55 UTC] kalowsky@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 07:00:01 2025 UTC |
The following code worked fine in 4.0.6 for a trivial stored procedure (in MSSQL7) that returns multiple result sets, but in 4.2.0 it hangs (and then timeouts) at the first call to odbc_next_result(). $conn = odbc_connect($ODBC_CONN, $USER, $PASS); $rs = odbc_exec($conn,$SP); do { while (odbc_fetch_into($rs,$row)) { foreach($row as $f => $v) { print $f . " = " . $v . "<BR>"; } } print "<BR>"; } while(odbc_next_result($rs)); Without the outer loop for odbc_next_result() the code works fine and returns the data in the first result set, as expected.