[php-src] PR #15727: Remove driver specific support from ODBC
| From: | NattyNarwhal | Date: | Tue, 03 Sep 2024 17:59:06 +0000 |
| Subject: | [php-src] PR #15727: Remove driver specific support from ODBC | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-28376@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15727
Author: NattyNarwhal
See GH-15630 for motivation and some concerns. Looks like we can get rid of a bunch of ifdefs!
Additional ones I've had since this:
* Should we remove the Db2 special casing?
* There's some redundancy with the various fetch functions; this could be made into a common
interface that the PHP functions call into.
* It seems fetch hash works with all the driver managers, but not the custom ones.
*
SQL_TIMESTAMP is gated behind Adabas for some reason (in odbc_bindcols),
even though it seems general? May need to look into how it gets converted to SQL_C_CHAR
per [ODBC
ref](https://learn.microsoft.com/en-us/sql/odbc/reference/appendixes/sql-to-c-timestamp?view=sql-server-ver16).