[php-src] PR #15256: Output diagnostics when SQLFetch with SQL_ERROR
| From: | cmb69 | Date: | Tue, 06 Aug 2024 13:47:40 +0000 |
| Subject: | [php-src] PR #15256: Output diagnostics when SQLFetch with SQL_ERROR | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-27700@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15256
Author: cmb69
These diagnostics can be useful, and if not for users, at least for the ext/odbc maintainers. We
only call
odbc_sql_error() if the previous SQLFetch() or
SQLFetchExtended() return SQL_ERROR, because otherwise the diagnostic
would be unhelpful ("Failed to fetch error message, SQL state HY000").
Note that the diagnostic is emitted as E_WARNING so technically this is a small BC
break.