Permalink
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...
jeremy committed Oct 15, 2007
1 parent 5d3e724 commit 6cc7095320e8e6525f83a4740d58fc45d749ca6b
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 6cc7095

Please sign in to comment.