Re: Possible RFC: PDOStatement::addBatch
| From: | Kamil Tekiela | Date: | Wed, 14 Jun 2023 07:03:01 +0000 |
| Subject: | Re: Possible RFC: PDOStatement::addBatch | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-120570@lists.php.net to get a copy of this message | ||
Hi Vinicius,
What would be the reason to add this? A reason cannot just be that there is
no such function. You can easily do it with a loop like you have just
shown. There isn't really any other way unless we introduce some driver
specific SQL builder. So what would we gain from it? Is it speed, security,
efficiency?
String concatenation isn't an alternative though.
Regards,
Kamil