diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2013-07-20 20:30:35 -0700 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2013-07-22 04:49:18 -0700 |
commit | 31a43ebc107fbd50e7e62567e5208a05909ec76c (patch) | |
tree | 618f2f7de7001d2b6cb701ba7a1f5d6f9d1ca662 /activerecord/test | |
parent | c083dc22dd16c3c2e43bbe1e13e4ee210c2adbc1 (diff) | |
download | rails-31a43ebc107fbd50e7e62567e5208a05909ec76c.tar.gz rails-31a43ebc107fbd50e7e62567e5208a05909ec76c.tar.bz2 rails-31a43ebc107fbd50e7e62567e5208a05909ec76c.zip |
Don't allow `quote_value` to be called without a column
Some adapters require column information to do their job properly.
By enforcing the provision of the column for this internal method
we ensure that those using adapters that require column information
will always get the proper behavior.
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/finder_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/finder_test.rb b/activerecord/test/cases/finder_test.rb index 6f0de42aef..d8bc0653a1 100644 --- a/activerecord/test/cases/finder_test.rb +++ b/activerecord/test/cases/finder_test.rb @@ -613,7 +613,7 @@ class FinderTest < ActiveRecord::TestCase def test_named_bind_with_postgresql_type_casts l = Proc.new { bind(":a::integer '2009-01-01'::date", :a => '10') } assert_nothing_raised(&l) - assert_equal "#{ActiveRecord::Base.quote_value('10')}::integer '2009-01-01'::date", l.call + assert_equal "#{ActiveRecord::Base.connection.quote('10')}::integer '2009-01-01'::date", l.call end def test_string_sanitation |