aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-02-08 16:44:52 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-02-08 16:54:07 -0800
commit5046120b97f4ce8ab08ff7e65c87cfb35f95dba6 (patch)
tree35347b52dd90b4254af670f04bc33748031dbec1 /activerecord
parentc9182597caba4d3cc34fca2c5b883c87bf8b910c (diff)
downloadrails-5046120b97f4ce8ab08ff7e65c87cfb35f95dba6.tar.gz
rails-5046120b97f4ce8ab08ff7e65c87cfb35f95dba6.tar.bz2
rails-5046120b97f4ce8ab08ff7e65c87cfb35f95dba6.zip
comma limits do not make sense on oracle or pg
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/base_test.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb
index 20a16cc8ac..2cbff6a5e1 100644
--- a/activerecord/test/cases/base_test.rb
+++ b/activerecord/test/cases/base_test.rb
@@ -59,9 +59,11 @@ class BasicsTest < ActiveRecord::TestCase
assert_nil Edge.primary_key
end
- def test_limit_with_comma
- assert_nothing_raised do
- Topic.limit("1,2").all
+ unless current_adapter?(:PostgreSQLAdapter) || current_adapter?(:OracleAdapter)
+ def test_limit_with_comma
+ assert_nothing_raised do
+ Topic.limit("1,2").all
+ end
end
end