Change Request: Make PDO default to not emulate prepared statements for MySQL
| From: | Anthony Ferrara | Date: | Sat, 30 Apr 2011 15:13:41 +0000 |
| Subject: | Change Request: Make PDO default to not emulate prepared statements for MySQL | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-52097@lists.php.net to get a copy of this message | ||
I have already reported this issue on the bug tracker:
http://bugs.php.net/bug.php?id=54638
But I figured it would be good to start a discussion on it here. To
me, I consider this a pretty significant issue since it's not possible
to do true prepared statements while using PDO. All the code to do so
is there (and it does work). But it's just the single flag that
defaults emulation to be on that's holding things up.
Since it will fallback to using emulation mode if the library or
server can't support prepared statements, I don't personally see any
issue with changing the default in a point release.
Thanks
Anthony