mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
test quoting a string with an unknown column type
This commit is contained in:
parent
31b132aa9b
commit
0ca9c836c0
1 changed files with 4 additions and 0 deletions
|
@ -206,6 +206,10 @@ module ActiveRecord
|
|||
string = ActiveSupport::Multibyte::Chars.new('lo\l')
|
||||
assert_equal "'foo'", @quoter.quote(string, col)
|
||||
end
|
||||
|
||||
def test_string_with_crazy_column
|
||||
assert_equal "'lo\\\\l'", @quoter.quote('lo\l', FakeColumn.new(:foo))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue