aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Molina <marcel@vernix.org>2007-05-06 04:41:45 +0000
committerMarcel Molina <marcel@vernix.org>2007-05-06 04:41:45 +0000
commit6bdcc0cfaf9e3988a27bafdaa871c930bd4a31cf (patch)
treec5c21783463e1ae6d5c3b30fc5db3cfadda54709
parentf07d0e29da946aaa3956019365557e8712eb6817 (diff)
downloadrails-6bdcc0cfaf9e3988a27bafdaa871c930bd4a31cf.tar.gz
rails-6bdcc0cfaf9e3988a27bafdaa871c930bd4a31cf.tar.bz2
rails-6bdcc0cfaf9e3988a27bafdaa871c930bd4a31cf.zip
Add documentation for :encoding option to mysql adapter. Closes #8219 [marclove]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6678 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--activerecord/CHANGELOG2
-rwxr-xr-xactiverecord/lib/active_record/connection_adapters/mysql_adapter.rb1
2 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index a9c1b03fa1..e774c83320 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Add documentation for :encoding option to mysql adapter. [marclove]
+
* Added short-hand declaration style to migrations (inspiration from Sexy Migrations, http://errtheblog.com/post/2381) [DHH]. Example:
create_table "products" do |t|
diff --git a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
index c0a09d7a54..8617191ac5 100755
--- a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
@@ -129,6 +129,7 @@ module ActiveRecord
# * <tt>:username</tt> -- Defaults to root
# * <tt>:password</tt> -- Defaults to nothing
# * <tt>:database</tt> -- The name of the database. No default, must be provided.
+ # * <tt>:encoding</tt> -- (Optional) Sets the client encoding by executing "SET NAMES <encoding>" after connection
# * <tt>:sslkey</tt> -- Necessary to use MySQL with an SSL connection
# * <tt>:sslcert</tt> -- Necessary to use MySQL with an SSL connection
# * <tt>:sslcapath</tt> -- Necessary to use MySQL with an SSL connection