summaryrefslogtreecommitdiffstats
path: root/sites
diff options
context:
space:
mode:
authorwebchick2011-12-25 08:40:22 (GMT)
committerwebchick2011-12-25 08:40:22 (GMT)
commit2f6d917af5b7367e2956a16f76909ac09110b853 (patch)
tree8f42e2fd426e36e7912287bc025e30e67aa41581 /sites
parent15e66edf06ff2fa366e21c192fdfe5e35ca52f6e (diff)
Issue #1309278 by basic, Niklas Fiekas: Added Make PDO connection options configurable.
Diffstat (limited to 'sites')
-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 f8894aa..d8ab0e6 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(