jruby hangs on connection to sqlserver
- by Christopher Dancy
Jruby is hanging on connection to sqlserver and I cannot figure out why. Here is my code ...
puts "make connection"
ActiveRecord::Base.establish_connection(
:adapter => 'jdbc',
:driver => 'com.microsoft.jdbc.sqlserver.SQLServerDriver',
:url => 'jdbc:sqlserver://test:1433;databaseName=test;integratedSecurity=true',
:username=>'test',
:password=>'test'
)
puts "connected"
fish = ActiveRecord::Base.connection.execute("SELECT * FROM users")
puts "query ok"
the code spits out "make connection" and then "connected" but never reaches "query ok" any ideas?