[php-src] PR #25569: ext/pdo_odbc fallback when SQLDescribeParam returns SQL_UNKNOWN_TYPE
| From: | jnahmias | Date: | Wed, 18 Nov 2026 22:11:11 +0000 |
| Subject: | [php-src] PR #25569: ext/pdo_odbc fallback when SQLDescribeParam returns SQL_UNKNOWN_TYPE | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40792@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25569
Author: jnahmias
Some ODBC drivers, eg. FreeTDS, report SQL_SUCCESS from SQLDescribeParam() while leaving sqltype as
SQL_UNKNOWN_TYPE (0).
Treat SQL_UNKNOWN_TYPE the same as a failed SQLDescribeParam() call and fall back to PDO parameter
type inference instead of passing sqltype=0 to SQLBindParameter().