I use sequel with sinatra for my small internal api, I also use odbc => 
freetds to connect to MsSQL server.
Today, I tried to switch to tinytds adapter from github repo as Jeremy said 
in release news and YARRR it's working, but only with development env on 
production pc.((
This is the log for error. Any help appreciated.

$ unicorn -E development
OK

$ unicorn -E production
Sequel::DatabaseError - TinyTds::Error: Invalid object name 
'USER_NEWSLETTER'.:
 
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/sequel-3.21.0/lib/sequel/adapters/tinytds.rb:93:in
 
`fields'
 
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/sequel-3.21.0/lib/sequel/adapters/tinytds.rb:93:in
 
`block in fetch_rows'
 
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/sequel-3.21.0/lib/sequel/adapters/tinytds.rb:39:in
 
`block in execute'
 
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/sequel-3.21.0/lib/sequel/connection_pool/threaded.rb:84:in
 
`hold'
 
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/sequel-3.21.0/lib/sequel/database/connecting.rb:226:in
 
`synchronize'
 
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/sequel-3.21.0/lib/sequel/adapters/tinytds.rb:31:in
 
`execute'
 
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/sequel-3.21.0/lib/sequel/dataset/actions.rb:541:in
 
`execute'
 
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/sequel-3.21.0/lib/sequel/adapters/tinytds.rb:89:in
 
`fetch_rows'
 
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/sequel-3.21.0/lib/sequel/dataset/actions.rb:123:in
 
`each'
 
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/sequel-3.21.0/lib/sequel/dataset/actions.rb:449:in
 
`single_record'
 
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/sequel-3.21.0/lib/sequel/dataset/actions.rb:457:in
 
`single_value'
 
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/sequel-3.21.0/lib/sequel/dataset/actions.rb:202:in
 
`get'
 
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/sequel-3.21.0/lib/sequel/dataset/actions.rb:96:in
 
`count'



-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to