Hello,
I'm using Sequel 3.36.1 on Linux 64 bit and Windows Server 2008. On
Linux this code works without problems:
require "rubygems"
require "sequel"
DB=Sequel.ibmdb(:database => "db", :user => "user", :password =>
"user123", :host => "MyHost", :port => 1234)
DB[:ttcmcs046110].each do |row|
p row[:t_dsca]
end
On Windows Server the ibmdb.rb adapter file has problems:
ibmdb.rb line 140-142:
method field_type returns false for field_type (on Linux this method
returns :string for my select statement, correct behaviour)
This method is using the ibm_db gem method
IBM_DB.field_type(@statement,key)
Could this be a bug (ibm_db) or it's a problem with sequel?
My error message executing this code on Windows Server 2008 R2:
C:/Ruby193/lib/ruby/gems/1.9.1/gems/sequel-3.36.1/lib/sequel/adapters/
ibmdb.rb:141: warning: Column name specified is not valid
C:/Ruby193/lib/ruby/gems/1.9.1/gems/sequel-3.36.1/lib/sequel/adapters/
ibmdb.rb:428:in `block (2 levels) in fetch_rows': undefined method
`downcase' for false:FalseClass (NoMethodError)
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/sequel-3.36.1/lib/
sequel/adapters/ibmdb.rb:416:in `times'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/sequel-3.36.1/lib/
sequel/adapters/ibmdb.rb:416:in `block in fetch_rows'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/sequel-3.36.1/lib/
sequel/adapters/ibmdb.rb:291:in `_execute'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/sequel-3.36.1/lib/
sequel/adapters/ibmdb.rb:206:in `block in execute'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/sequel-3.36.1/lib/
sequel/database/connecting.rb:229:in `block in synchronize'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/sequel-3.36.1/lib/
sequel/connection_pool/threaded.rb:105:in `hold'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/sequel-3.36.1/lib/
sequel/database/connecting.rb:229:in `synchronize'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/sequel-3.36.1/lib/
sequel/adapters/ibmdb.rb:206:in `execute'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/sequel-3.36.1/lib/
sequel/dataset/actions.rb:744:in `execute'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/sequel-3.36.1/lib/
sequel/adapters/ibmdb.rb:411:in `fetch_rows'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/sequel-3.36.1/lib/
sequel/dataset/actions.rb:133:in `each'
--
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.