PHP 4.0 Bug #8089 Updated: No ODBC function that returns SQL error messages
| From: | sniper@php.net | Date: | Sun, 04 Feb 2001 01:17:01 +0000 |
| Subject: | PHP 4.0 Bug #8089 Updated: No ODBC function that returns SQL error messages | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-45700@lists.php.net to get a copy of this message | ||
ID: 8089
Updated by: sniper
Reported By: jlim@natsoft.com.my
Old-Status: Open
Status: Closed
Bug Type: ODBC related
Assigned To:
Comments:
According to phobo <antiphobo@paradise.net.nz>,
ODBC Error functions are now written as of php404.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-12-04 02:00:27] jlim@natsoft.com.my
I am having a problem because ODBC error messages are sent to standard output and there doesn't
seem to be a function to capture the ODBC error message.
May i suggest a new ODBC function ODBC_Error() which saves the last error message for each
connection.
Eg.
$ok = ODBC_Execute($id,'select * from badtable');
if (!$ok) LogError(ODBC_Error($id));
This can be implemented in php_odbc.c, presumbly by modifying the odbc_sql_error function.
461 void odbc_sql_error(ODBC_SQL_ERROR_PARAMS)
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8089&edit=2