aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorAaron Stone <aaron@serendipity.cx>2012-11-27 00:57:45 -0800
committerAaron Stone <aaron@serendipity.cx>2012-12-08 10:11:10 -0800
commit97d06e8c4bd44154abda41a3f7e4bc49929a919f (patch)
tree33bad0ef6d7bd8566e0e397d9db7e3d6cfb6a208 /activerecord/CHANGELOG.md
parent0a33fcd68bb2c56b8c2eba066f343484a44fa588 (diff)
downloadrails-97d06e8c4bd44154abda41a3f7e4bc49929a919f.tar.gz
rails-97d06e8c4bd44154abda41a3f7e4bc49929a919f.tar.bz2
rails-97d06e8c4bd44154abda41a3f7e4bc49929a919f.zip
Session variables for mysql, mysql2, and postgresql adapters can be set
in the new 'variables:' hash in each database config section in database.yml. The key-value pairs of this hash will be sent in a 'SET key = value, ...' query on new database connections. The configure_connection methods from mysql and mysql2 into are consolidated into the abstract_mysql base class.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 0a2e7a127c..ab8c54e4cb 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,5 +1,13 @@
## Rails 4.0.0 (unreleased) ##
+* Session variables can be set for the `mysql`, `mysql2`, and `postgresql` adapters
+ in the `variables: <hash>` parameter in `database.yml`. The key-value pairs of this
+ hash will be sent in a `SET key = value` query on new database connections. See also:
+ http://dev.mysql.com/doc/refman/5.0/en/set-statement.html
+ http://www.postgresql.org/docs/8.3/static/sql-set.html
+
+ *Aaron Stone*
+
* Allow `Relation#where` with no arguments to be chained with new `not` query method.
Example: