aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2015-01-28 15:17:17 -0700
committerSean Griffin <sean@thoughtbot.com>2015-01-28 15:19:13 -0700
commit96ac14a3856b9e48e11c7f1e0552ef2f3a87e4d6 (patch)
tree95c7e1d0e0547a9b719c53edadc8ee51474e9c31 /activerecord/test
parent82173989de711ecda71b7e887291a524c23c14ce (diff)
downloadrails-96ac14a3856b9e48e11c7f1e0552ef2f3a87e4d6.tar.gz
rails-96ac14a3856b9e48e11c7f1e0552ef2f3a87e4d6.tar.bz2
rails-96ac14a3856b9e48e11c7f1e0552ef2f3a87e4d6.zip
Always convert strings to UTF-8, regardless of column type in SQLite
All columns which would map to a string primitive need this behavior. Binary has it's own marker type, so it won't go through this conversion. String and text, which need this, will. Fixes #18585.
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/adapters/sqlite3/quoting_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapters/sqlite3/quoting_test.rb b/activerecord/test/cases/adapters/sqlite3/quoting_test.rb
index 274e358e4a..c1d9b7c273 100644
--- a/activerecord/test/cases/adapters/sqlite3/quoting_test.rb
+++ b/activerecord/test/cases/adapters/sqlite3/quoting_test.rb
@@ -85,7 +85,7 @@ module ActiveRecord
def test_quoting_binary_strings
value = "hello".encode('ascii-8bit')
- type = SQLite3String.new
+ type = Type::String.new
assert_equal "'hello'", @conn.quote(type.type_cast_for_database(value))
end