Permalink
Browse files

skip this test on mysql2 as well

  • Loading branch information...
1 parent 401ee98 commit 4433b507a0a2ef7a4992632dfc010ec7cc6f83bb @tenderlove tenderlove committed Feb 11, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 activerecord/test/cases/base_test.rb
@@ -83,13 +83,13 @@ def test_limit_should_sanitize_sql_injection_for_limit_with_comas
Topic.limit("1, 7 procedure help()").all
end
end
-
- unless current_adapter?(:MysqlAdapter)
+
+ unless current_adapter?(:MysqlAdapter) || current_adapter?(:Mysql2Adapter)
def test_limit_should_allow_sql_literal
assert_equal 1, Topic.limit(Arel.sql('2-1')).all.length
end
end
-
+
def test_select_symbol
topic_ids = Topic.select(:id).map(&:id).sort
assert_equal Topic.find(:all).map(&:id).sort, topic_ids

0 comments on commit 4433b50

Please sign in to comment.