Permalink
Browse files

comma limits do not make sense on oracle or pg

  • Loading branch information...
1 parent 27b8fb5 commit ff00cd2844e11123db0f812475b90ed3fa5cbbe9 @tenderlove tenderlove committed Feb 9, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 activerecord/test/cases/base_test.rb
@@ -48,9 +48,11 @@ class Boolean < ActiveRecord::Base; end
class BasicsTest < ActiveRecord::TestCase
fixtures :topics, :companies, :developers, :projects, :computers, :accounts, :minimalistics, 'warehouse-things', :authors, :categorizations, :categories, :posts
- 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

1 comment on commit ff00cd2

Contributor

metaskills commented on ff00cd2 Feb 9, 2011

I'll be committing a patch that adds :SQLServerAdapter too.

Please sign in to comment.