Re: [Proposal] Add `savepoint()` method to PDO
| From: | Saki Takamachi | Date: | Tue, 06 Feb 2024 20:03:30 +0000 |
| Subject: | Re: [Proposal] Add `savepoint()` method to PDO | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-122313@lists.php.net to get a copy of this message | ||
> There's been discussion recently about how to deal with incompatibilities between
> different PDO drivers, especially now that we can have subclasses per driver. That may be the way
> to deal with it. I don't have a major opinion on the approach, other than all
> incompatibilities should be handled in a consistent way.
I was thinking of an implementation method like
lastInsertId(), but there is certainly
another way to use a subclass.
Personally, I was thinking of implementing, for example, SQL99-compliant (included) functions in PDO
Core Class, and vendor-specific original functions in subclasses. However, I don't have a
strong opinion on how they should be used, as there is still not much precedent for subclasses.
I agree with you that it should be a consistent implementation. I'm not sure if all
incompatible features should be implemented in subclasses, or just vendor-specific features, but at
least yes. There should be consistency.
Regards.
Saki