jruby hangs on connection to sqlserver
Posted
by Christopher Dancy
on Stack Overflow
See other posts from Stack Overflow
or by Christopher Dancy
Published on 2010-04-20T15:20:37Z
Indexed on
2010/04/20
15:23 UTC
Read the original article
Hit count: 295
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?
© Stack Overflow or respective owner