Re: PDO mysql - add feature to enforce single statements?
| From: | Johannes Schlüter | Date: | Mon, 10 Nov 2014 17:02:58 +0000 |
| Subject: | Re: PDO mysql - add feature to enforce single statements? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-78862@lists.php.net to get a copy of this message | ||
On Thu, 2014-11-06 at 19:52 -0500, Peter Wolanin wrote:
> Suggested solution: add a PDO attribute that could be set on a
> connection or a driver option for PDO::prepare to enforce the limit of
> a single query being prepared or run.
The issue is that disabling multi-query implicitly also disables support
for stored procedures as the same flag configures handling of operations
with multiple result sets. So this probably needs more thoughts
especially in order to get "similar" behavior with different
databases ... can you add a feature request in the bug tracker for this?
johannes