Re: PDO SQLite: statement attributes for SQL text retrieval
| From: | Kamil Tekiela | Date: | Fri, 03 Apr 2026 15:38:36 +0000 |
| Subject: | Re: PDO SQLite: statement attributes for SQL text retrieval | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-130546@lists.php.net to get a copy of this message | ||
On Fri, 3 Apr 2026 at 16:29, Ilia <ilia@ilia.ws> wrote:
>
> In the context of the SQLite extension, this makes 100% sense as a separate function. In the
> context of PDO which tries to be generic when fetching essentially meta-data IMO it makes more sense
> to fetch via the attribute framework which is generic as opposed to creating driver-specific
> functions.
>
> In terms of utility this primarily be helpful for debugging / analysis purposes and completes
> the driver implementation, making what PDO offers match what the native extension offers. It
> doesn't impact performance etc... so no negative effect that I can see
That's the thing. I still don't understand what kind of code would
necessitate the use of this function. What would the debugging code
look like? Why can it not be achieved with the existing functionality?
Not everything deserves to be brought from SQLite3 to PDO.