Re: [RFC] [Under Discussion] PDO driver specific sub-classes
| From: | Matteo Beccati | Date: | Mon, 27 Jun 2022 07:39:31 +0000 |
| Subject: | Re: [RFC] [Under Discussion] PDO driver specific sub-classes | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-118101@lists.php.net to get a copy of this message | ||
On 27/06/2022 08:50, Marc Bennewitz wrote:
2. Another annoying PDO feature is the configurable behavior of exceptions. As now exceptions are the default way it would be nice to not all disabling exceptions if instantiated the new way. Create all DB sub-classes? yes pleaseI too think this would be best for consistency.
PQescapeIdentifier I think these should be a general PDO method but as we already haveI haven't checked the feasibility, but how about a PDO::QUOTE_IDENTIFIER constant to be used only with the existing quote method? e.g. PDO::quote('A column name', PDO::QUOTE_IDENTIFIER) That said, I have the feeling this RFC suffers from feature creep and is subject to a fair amount of bike shedding. To me that's a bit too late for 8.2. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/quoteit would be preferable to name itquoteIdentifieror how would you explain the difference betweenquoteandescapeIdentifier?