diff --git a/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php b/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php index 829b4fb..7a2176e 100644 --- a/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php +++ b/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php @@ -136,8 +136,9 @@ public static function open(array &$connection_options = array()) { // rows that actually didn't have to be updated because the values didn't // change. This matches common behavior among other database systems. \PDO::MYSQL_ATTR_FOUND_ROWS => TRUE, - // Because MySQL's prepared statements skip the query cache, because it's dumb. + // Because prepared statements are more secure. \PDO::ATTR_EMULATE_PREPARES => FALSE, + \PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => TRUE, ); if (defined('\PDO::MYSQL_ATTR_MULTI_STATEMENTS')) { // An added connection option in PHP 5.5.21 to optionally limit SQL to a