On linux with JRuby 1.7.4
I have sqljdc4.jar from Microsoft on the CLASSPATH.
###############
# This script works
require 'rubygems'
require 'bundler/setup'
require 'java'
require 'sqljdbc4.jar'
require 'sequel'
Java::com.microsoft.sqlserver.jdbc.SQLServerDriver
db =
Sequel.connect('jdbc:sqlserver://10.10.10.110;databaseName=extract;user=username;password=secret;')
db.fetch("SELECT top 10 * FROM Skill") do |row|
puts row.to_s
end
###############
Running a migration I get this error:
$ bin/sequel -m db/migrate
'jdbc:sqlserver://10.10.10.110;databaseName=extract;user=username;password=secret;'
Error: NameError: missing class or uppercase package name
(`com.microsoft.sqlserver.jdbc.SQLServerDriver')org/jruby/javasupport/JavaUtilities.java:54:in
`get_proxy_or_package_under_package'
craig@virt-ubu-1:/opt/gcsww.com/cvlan_logger_2$ bundle show sequel
/opt/rubies/jruby-1.7.4.dev/lib/ruby/gems/shared/gems/sequel-4.0.0
Any thoughts on how to do this?
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/groups/opt_out.