bug in odbc extension http://bugs.php.net/bug.php?id=40695

php.internals

Alexandra S.

18 years ago
Hi, I am attaching here a small patch for this bug. The original error for the reproduction script in this bug was: *Warning*: odbc_execute() [function.odbc-execute <http://10.1.2.195/function.odbc-execute>]: SQL error: [Microsoft][ODBC Microsoft Access Driver]COUNT field incorrect , SQL state 07001 in SQLExecute in *C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\odbc2.php* on line *33 This is not the right error. since we did not check the return codes from SQLDescribeParam php_odbc.php:1000 we did not see that the real error is: **Warning*: odbc_execute() [function.odbc-execute <http://10.1.2.195/function.odbc-execute>]: SQL error: [Microsoft][ODBC Driver Manager] Driver does not support this function, SQL state IM001 in hello - SQL_ERROR in *C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\odbc2.php* on line *33 Please review the patch Alexandra Shpindovsky

Dmitry Stogov

18 years ago
Hi Alexandra, In general the patch looks fine. Is it possible to write an automatic test with proper --SKIPIF-- condition for this fix? Thanks. Dmitry.