|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2005-06-02 17:43 UTC] tony2001@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 11:00:01 2025 UTC | 
Description: ------------ (This bug is in all versions of PHP since 4.*; the patch is against PHP 5.0.4) If a 2-statement SQL batch is executed, where the first SQL statement completes correctly but the second SQL statement yeilds an error, there is no error indication given by odbc_next_result; you simply get FALSE. I have a patch to correct this: --- ext/odbc/php_odbc.c~ 2005-01-18 10:07:10.000000000 -0500 +++ ext/odbc/php_odbc.c 2005-06-01 11:01:25.176471600 -0400 @@ -2439,5 +2463,8 @@ RETURN_TRUE; } - else { + else if(rc == SQL_NO_DATA_FOUND) { + RETURN_FALSE; + } else { + odbc_sql_error(result->conn_ptr, result->stmt, "SQLMoreResults"); RETURN_FALSE; }