Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update IGNORED_SQL for SQL Server. Closes #9638 [lawrence]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7895 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 6cc7095320e8e6525f83a4740d58fc45d749ca6b 1 parent 5d3e724
@jeremy jeremy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/test/abstract_unit.rb
View
2  activerecord/test/abstract_unit.rb
@@ -62,7 +62,7 @@ def uses_mocha(test_name)
ActiveRecord::Base.connection.class.class_eval do
unless defined? IGNORED_SQL
- IGNORED_SQL = [/^PRAGMA/, /^SELECT currval/, /^SELECT CAST/, /^SELECT @@IDENTITY/]
+ IGNORED_SQL = [/^PRAGMA/, /^SELECT currval/, /^SELECT CAST/, /^SELECT @@IDENTITY/, /^SELECT @@ROWCOUNT/]
def execute_with_counting(sql, name = nil, &block)
$query_count ||= 0
Please sign in to comment.
Something went wrong with that request. Please try again.