3 ms·
This seriously should be the default behavior. To anyone who is wondering what the heck the above is about, PDO/MySQL doesn't actually prepare and execute a st
by kijin 13y ago
This seriously should be the default behavior.
To anyone who is wondering what the heck the above is about, PDO/MySQL doesn't actually prepare and execute a statement when you use the prepare & execute methods. Instead, it automatically escapes all the parameters, interpolates them into the querystring, and sends the query to the database server.
This behavior is the default because, well, somebody might use an old version of MySQL (3.23 or 4.0) that doesn't support prepared statements. Never mind the vast majority of MySQL 4.1+ users who are sacrificing performance because of this outdated default.