mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05: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:
parent
5d3e72486b
commit
6cc7095320
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue