Skip to content

Commit 674d018

Browse files
committed
Debug
1 parent aa0f197 commit 674d018

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/active_record/connection_adapters/sqlserver_adapter.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def connect
308308
end
309309

310310
def dblib_connect(config)
311-
TinyTds::Client.new(
311+
options = {
312312
dataserver: config[:dataserver],
313313
host: config[:host],
314314
port: config[:port],
@@ -321,7 +321,9 @@ def dblib_connect(config)
321321
timeout: config_timeout(config),
322322
encoding: config_encoding(config),
323323
azure: config[:azure]
324-
).tap do |client|
324+
}
325+
puts options.except(:password).inspect
326+
TinyTds::Client.new(options).tap do |client|
325327
if config[:azure]
326328
client.execute('SET ANSI_NULLS ON').do
327329
client.execute('SET CURSOR_CLOSE_ON_COMMIT OFF').do

0 commit comments

Comments
 (0)