diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-02-25 23:54:57 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-02-25 23:54:57 +0000 |
commit | 272729e0a339d80bc422fcbdfc86dd60e3e4c030 (patch) | |
tree | e160fa18b89007690dee5df405520cb99800587c /activerecord/test/connections/native_mysql | |
parent | ad9f678d13db438d48d497bf71ccef6856d58a7d (diff) | |
download | rails-272729e0a339d80bc422fcbdfc86dd60e3e4c030.tar.gz rails-272729e0a339d80bc422fcbdfc86dd60e3e4c030.tar.bz2 rails-272729e0a339d80bc422fcbdfc86dd60e3e4c030.zip |
Fixed validates_length_of to work on UTF-8 strings by using characters instead of bytes (closes #3699) [Masao Mutoh]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3654 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/connections/native_mysql')
-rw-r--r-- | activerecord/test/connections/native_mysql/connection.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/connections/native_mysql/connection.rb b/activerecord/test/connections/native_mysql/connection.rb index dea337567b..b665a6b449 100644 --- a/activerecord/test/connections/native_mysql/connection.rb +++ b/activerecord/test/connections/native_mysql/connection.rb @@ -10,6 +10,7 @@ db2 = 'activerecord_unittest2' ActiveRecord::Base.establish_connection( :adapter => "mysql", :username => "rails", + :encoding => "utf8", :database => db1 ) |