summaryrefslogtreecommitdiff
path: root/sites/default
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-12-25 00:40:22 -0800
committerwebchick <webchick@24967.no-reply.drupal.org>2011-12-25 00:40:22 -0800
commit2f6d917af5b7367e2956a16f76909ac09110b853 (patch)
tree8f42e2fd426e36e7912287bc025e30e67aa41581 /sites/default
parent15e66edf06ff2fa366e21c192fdfe5e35ca52f6e (diff)
downloadbrdo-2f6d917af5b7367e2956a16f76909ac09110b853.tar.gz
brdo-2f6d917af5b7367e2956a16f76909ac09110b853.tar.bz2
Issue #1309278 by basic, Niklas Fiekas: Added Make PDO connection options configurable.
Diffstat (limited to 'sites/default')
-rw-r--r--sites/default/default.settings.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php
index f8894aaf5..d8ab0e62f 100644
--- a/sites/default/default.settings.php
+++ b/sites/default/default.settings.php
@@ -153,6 +153,29 @@
* @endcode
* NOTE: MySQL and SQLite's definition of a schema is a database.
*
+ * Advanced users can add or override initial commands to execute when
+ * connecting to the database server, as well as PDO connection settings. For
+ * example, to enable MySQL SELECT queries to exceed the max_join_size system
+ * variable, and to reduce the database connection timeout to 5 seconds:
+ *
+ * @code
+ * $databases['default']['default'] = array(
+ * 'init_commands' => array(
+ * 'big_selects' => 'SET SQL_BIG_SELECTS=1',
+ * ),
+ * 'pdo' => array(
+ * PDO::ATTR_TIMEOUT => 5,
+ * ),
+ * );
+ * @endcode
+ *
+ * WARNING: These defaults are designed for database portability. Changing them
+ * may cause unexpected behavior, including potential data loss.
+ *
+ * @see DatabaseConnection_mysql::__construct
+ * @see DatabaseConnection_pgsql::__construct
+ * @see DatabaseConnection_sqlite::__construct
+ *
* Database configuration format:
* @code
* $databases['default']['default'] = array(