>
> Hi,
>
> > In the latter case, I suppose they would expect the behaviour to be 
> > compliant with the database standards.
>
> I may not have had this perspective. And this is a strong basis for 
> explaining that different drivers behave differently.
>
> I will continue with the current implementation and consider the optimal 
> method for each driver.
>
>

I wanted to mention a recent RFC that passed its vote
(https://wiki.php.net/rfc/pdo_driver_specific_subclasses). It proposes
to add a PDO subclass for each driver, so we can make individual
driver-specific functions and changes more visible at the API level.

Unfortunately it did not make it to PHP 8.3, but the RFC vote
indicates the trajectory everyone hopes to have in PDO. It was voted
yes unanimously, so there is definitely a preference in majority of us
to iron out the differences, but perhaps in a non-BC way, preferably
making these inconsistencies obvious from the API level and not at the
test/doc levels.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to