diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-04-24 16:27:20 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-04-24 16:27:20 -0700 |
commit | bd3cc6bfffd02302414f1558be7d6105ac47e67a (patch) | |
tree | 080b02540825b3f992a48e200588a6def9f41b70 /activerecord/test | |
parent | ed0ca5db9ea247ceae67f22a750cbd49006f35ed (diff) | |
download | rails-bd3cc6bfffd02302414f1558be7d6105ac47e67a.tar.gz rails-bd3cc6bfffd02302414f1558be7d6105ac47e67a.tar.bz2 rails-bd3cc6bfffd02302414f1558be7d6105ac47e67a.zip |
Remove quoted_string_prefix entirely since PostgreSQL was the only database adapter relying on it.
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/finder_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/finder_test.rb b/activerecord/test/cases/finder_test.rb index 9e88ec8016..77b2b748b1 100644 --- a/activerecord/test/cases/finder_test.rb +++ b/activerecord/test/cases/finder_test.rb @@ -566,8 +566,8 @@ class FinderTest < ActiveRecord::TestCase end def test_string_sanitation - assert_not_equal "#{ActiveRecord::Base.connection.quoted_string_prefix}'something ' 1=1'", ActiveRecord::Base.sanitize("something ' 1=1") - assert_equal "#{ActiveRecord::Base.connection.quoted_string_prefix}'something; select table'", ActiveRecord::Base.sanitize("something; select table") + assert_not_equal "'something ' 1=1'", ActiveRecord::Base.sanitize("something ' 1=1") + assert_equal "'something; select table'", ActiveRecord::Base.sanitize("something; select table") end def test_count |