Skip to content

Commit b6fdbeb

Browse files
authored
Use default inspect for database adapter (#1196)
1 parent 88d8e06 commit b6fdbeb

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

lib/active_record/connection_adapters/sqlserver_adapter.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,6 @@ def version
325325
self.class::VERSION
326326
end
327327

328-
def inspect
329-
"#<#{self.class} version: #{version}, azure: #{sqlserver_azure?.inspect}>"
330-
end
331-
332328
def combine_bind_parameters(from_clause: [], join_clause: [], where_clause: [], having_clause: [], limit: nil, offset: nil)
333329
result = from_clause + join_clause + where_clause + having_clause
334330
result << offset if offset

test/cases/adapter_test_sqlserver.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ class AdapterTestSQLServer < ActiveRecord::TestCase
1818
it "has basic and non-sensitive information in the adapters inspect method" do
1919
string = connection.inspect
2020
_(string).must_match %r{ActiveRecord::ConnectionAdapters::SQLServerAdapter}
21-
_(string).must_match %r{version\: \d.\d}
22-
_(string).must_match %r{azure: (true|false)}
2321
_(string).wont_match %r{host}
2422
_(string).wont_match %r{password}
2523
_(string).wont_match %r{username}

0 commit comments

Comments
 (0)