Bugs item #12149, was opened at 2007-07-10 16:37
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=12149&group_id=2014
Category: AR-JDBC
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: Insert statement does not work with Pre-assigned id when working with
Oracle Database
Initial Comment:
error message
-----------------------
ActiveRecord::StatementInvalid: ArgumentError: wrong number of arguments(2 for
1): INSERT INTO dm_quoc_gia (nguoi_nhap_may, id, nguoi_bo_sung, ten, ma_icao,
ma, ngay_bo_sung, ngay_nhap_may, qg_goc_id) VALUES('nhan_tu_a18', 101, null,
null, null, null, null, TIMESTAMP'2007-07-10 00:00:00', null)
D:/jruby/jruby-1.0/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/transactions.rb:101:in
`transaction'
D:/jruby/jruby-1.0/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/transactions.rb:121:in
`transaction'
D:/jruby/jruby-1.0/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/transactions.rb:129:in
`save_with_transactions'
test_don_vi_dia_chinh_from_msg.rb:15:in `test_save_101'
------------------------
----------------------------------------------------------------------
Comment By: Tomohiro Nakashima (to-nakashima)
Date: 2007-10-30 13:39
Message:
The phenomenon like the above reappears in my environment.
It is necessary to support the composite primary keys in the application that I
am in charge of development.
Therefore I use composite primary keys.(http://compositekeys.rubyforge.org/)
AR-JDBC, the composite primary key is not available?
----------------------------------------------------------------------
Comment By: Ola Bini (olabini)
Date: 2007-08-11 22:38
Message:
Can you verify this with trunk?
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=12149&group_id=2014
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel