[php-src] PR #23872: PDO: Make `PDO_ATTR_FETCH_TABLE_NAMES` generic in PDO
| From: | NattyNarwhal | Date: | Wed, 23 Sep 2026 23:55:21 +0000 |
| Subject: | [php-src] PR #23872: PDO: Make `PDO_ATTR_FETCH_TABLE_NAMES` generic in PDO | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-38756@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23872
Author: NattyNarwhal
Rather than having to be re-implemented by each driver. Also makes "table" in
getColumnMeta generic as well due to this refactor.
Some notes:
* ODBC I was not able to get
SQLColAttribute with SQL_DESC_TABLE_NAME to
work with the Db2i driver; I ahve not tested the SQLite ODBC or SQL Server drivers.
* DBLIB I'm unsure how to get the table name.
* PGSQL Fetchin the table name may be expensive due to the query needed. I have not measured; there
may also be a better way, but I'm not familiar with libpq.