From:             rich at kastle dot com
Operating system: Windows XP
PHP version:      5.0.3
PHP Bug Type:     ODBC related
Bug description:  configure.js missing

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;
        }



-- 
Edit bug report at http://bugs.php.net/?id=33214&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33214&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33214&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33214&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33214&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33214&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33214&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33214&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33214&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33214&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33214&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33214&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33214&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33214&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33214&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33214&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33214&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33214&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33214&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33214&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33214&r=mysqlcfg

Reply via email to