From 0ca9c836c09865056c6c85f29d045e1c9c40a993 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 12 Oct 2010 11:43:50 -0700 Subject: test quoting a string with an unknown column type --- activerecord/test/cases/quoting_test.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/activerecord/test/cases/quoting_test.rb b/activerecord/test/cases/quoting_test.rb index 08227d4379..4cc81d0735 100644 --- a/activerecord/test/cases/quoting_test.rb +++ b/activerecord/test/cases/quoting_test.rb @@ -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 -- cgit v1.2.3