Re: [RFC][Discussion] PDO driver specific parsers

From: Date: Thu, 18 Apr 2024 06:41:51 +0000
Subject: Re: [RFC][Discussion] PDO driver specific parsers
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi Kamil,

Il 17/04/2024 19:25, Kamil Tekiela ha scritto:
I think the question here was more about what the syntax will be after the parameters are substituted. But if I recall correctly, the quoting is done by PDO:: quote so the syntax will remain the same. Only the buggy behavior would be fixed when it comes to recognizing parameters.
Exactly, the parser change is all about properly recognizing parameters. Parameter substitution is taken care of by the driver. With emulated prepares (default on pdo_mysql, alas) parameters are inlined in the query after being properly "quoted". Otherwise they will be passed according to what the database client library needs (byte length + string, or any other format). It's a good point and I'll make sure to add this to the RFC. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/

Thread (17 messages)

« previous php.internals (#123154) next »