diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-13 05:49:41 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-13 05:49:41 +0000 |
commit | e349ea9c9c855ee6ec953dcb8599be3f99a487d1 (patch) | |
tree | 1f8b73c8d3f835e51eeb08b4060284d2de82ad19 /includes/database/mysql | |
parent | a75ff119fa98747a712339feb8c43a7fbe7d6bcb (diff) | |
download | brdo-e349ea9c9c855ee6ec953dcb8599be3f99a487d1.tar.gz brdo-e349ea9c9c855ee6ec953dcb8599be3f99a487d1.tar.bz2 |
#616650 by Crell: Default MySQL to transactions ON. Makes sense now that we default to InnoDB as well.
Diffstat (limited to 'includes/database/mysql')
-rw-r--r-- | includes/database/mysql/database.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/database/mysql/database.inc b/includes/database/mysql/database.inc index bbe4ea70e..437d796e3 100644 --- a/includes/database/mysql/database.inc +++ b/includes/database/mysql/database.inc @@ -14,8 +14,8 @@ class DatabaseConnection_mysql extends DatabaseConnection { public function __construct(array $connection_options = array()) { - // This driver defaults to non transaction support. - $this->transactionSupport = !empty($connection_options['transactions']); + // This driver defaults to transaction support, except if explicitly passed FALSE. + $this->transactionSupport = !isset($connection_options['transactions']) || ($connection_options['transactions'] !== FALSE); // MySQL never supports transactional DDL. $this->transactionalDDLSupport = FALSE; |