mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
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
This commit is contained in:
@@ -62,7 +62,7 @@ end
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user