Bugs item #10462, was opened at 2007-04-30 10:25
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=10462&group_id=2014
Category: AR-JDBC
Group: None
>Status: Closed
Resolution: None
Priority: 3
Submitted By: Martin Plöger (martin_ploeger)
Assigned to: Nobody (None)
Summary: NoMethodError: undefined method `setLong' for [EMAIL
PROTECTED]:Java::JavaObject:
Initial Comment:
Hi there, I tried to update to 0.2.4, but Oracle doesn't work.
The error seems to occur, because the method setLong is not defined for the
Oracle-Class oracle.jdbc.driver.T4CPreparedStatement. It occurs in the method
"execute_prepared_insert(sql, id)" in
jRuby\lib\ruby\gems\1.8\gems\ActiveRecord-JDBC-0.2.4\lib\jdbc_adapter\jdbc_oracle.rb
Do I have to use a different Oracle-Driver, because it seems to me, that
setLong worked in 0.2.3, because I posted a Bug + Bugfix for a similar problem
there?
Exception in thread "AWT-EventQueue-0"
C:/UserProg/011100/jRuby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract_adapter.rb:128:in
`log': NoMethodError: undefined method `setLong' for [EMAIL
PROTECTED]:Java::JavaObject: INSERT INTO projects (name, host_connection_name,
id) VALUES('Karl', 'Host connection name', ?) (ActiveRecord::StatementInvalid)
from
C:/UserProg/011100/jRuby/lib/ruby/gems/1.8/gems/ActiveRecord-JDBC-0.2.4/lib/jdbc_adapter/jdbc_oracle.rb:75:in
`insert'
from
C:/UserProg/011100/jRuby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1818:in
`create'
from
C:/UserProg/011100/jRuby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:254:in
----------------------------------------------------------------------
>Comment By: Ola Bini (olabini)
Date: 2007-08-11 15:34
Message:
This is fixed in AR-JDBC trunk.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=10462&group_id=2014
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel