mirror of
https://github.com/github/rails.git
synced 2026-01-10 07:07:54 -05:00
Revert "Don't try to EXPLAIN select_db calls"
Reason: This was backported, but the test does not pass as is.
This reverts commit a33d320cf4.
This commit is contained in:
@@ -38,13 +38,6 @@ if ActiveRecord::Base.connection.supports_explain?
|
||||
end
|
||||
end
|
||||
|
||||
def test_collects_nothing_if_the_statement_is_only_partially_matched
|
||||
with_queries([]) do |queries|
|
||||
SUBSCRIBER.finish(:name => 'SQL', :sql => 'select_db yo_mama')
|
||||
assert queries.empty?
|
||||
end
|
||||
end
|
||||
|
||||
def test_collects_nothing_if_unexplained_sqls
|
||||
with_queries([]) do |queries|
|
||||
SUBSCRIBER.call(:name => 'SQL', :sql => 'SHOW max_identifier_length')
|
||||
|
||||
Reference in New Issue
Block a user