aboutsummaryrefslogtreecommitdiffstats
path: root/guides/CHANGELOG.md
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2013-08-07 08:46:45 +0200
committerYves Senn <yves.senn@gmail.com>2013-08-07 08:56:05 +0200
commitda49e9a9f092d2d98da9e96fcecd39ef121239dc (patch)
tree8376bef626f6458d3e1b220eb389ec4e586f5377 /guides/CHANGELOG.md
parent4a7fba09f4893457c17cab6f5cdd86aeb20120a1 (diff)
downloadrails-da49e9a9f092d2d98da9e96fcecd39ef121239dc.tar.gz
rails-da49e9a9f092d2d98da9e96fcecd39ef121239dc.tar.bz2
rails-da49e9a9f092d2d98da9e96fcecd39ef121239dc.zip
skip `test_unicode_column_name` for `MysqlAdapter`.
This commit fixes the build but we need to further investigate the root cause, to see if it can be fixed. The test fails under `MysqlAdapter` with: ``` ActiveRecord::UnknownAttributeError: unknown attribute: なまえ ``` The root cause is that the returned column names from the adapter have the wrong encoding: ```ruby columns = Weird.columns_hash.keys columns # => ["id", "a$b", "\xE3\x81\xAA\xE3\x81\xBE\xE3\x81\x88", "from"] columns.map(&:encoding) # => [#<Encoding:ASCII-8BIT>, #<Encoding:ASCII-8BIT>, #<Encoding:ASCII-8BIT>, #<Encoding:ASCII-8BIT>] columns.map {|c| c.dup.force_encoding "utf-8"} # => ["id", "a$b", "なまえ", "from"] ``` From what I can tell the MySQL variables are fine: ``` ActiveRecord::Base.connection.execute("show variables") ... character_set_client utf8 character_set_connection utf8 character_set_database utf8 character_set_filesystem binary character_set_results utf8 character_set_server utf8 character_set_system utf8 character_sets_dir /usr/local/Cellar/mysql/5.5.29/share/mysql/charsets/ collation_connection utf8_general_ci collation_database utf8_unicode_ci collation_server utf8_general_ci ... ```
Diffstat (limited to 'guides/CHANGELOG.md')
0 files changed, 0 insertions, 0 deletions