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

From: Date: Sun, 23 Sep 2007 10:02:05 +0000
Subject: bug in odbc extension http://bugs.php.net/bug.php?id=40695
Groups: php.internals 
Request: Send a blank email to internals+get-32423@lists.php.net to get a copy of this message
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




Thread (2 messages)

« previous php.internals (#32423) next »