Bugs item #12149, was opened at 2007-07-10 02: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: G D (gduq)
Date: 2007-12-07 17:29

Message:
Having this problem too using JRuby 1.01.  Also verified with 1.1b1.  

ActiveRecord::StatementInvalid (ArgumentError: wrong number of arguments(2 for 
1): INSERT INTO IVR_CC_CHARGEBACK (acctno, timestamp, paydate, id, reason, 
payment_idnum, cc_number) VALUES('1', TIMESTAMP'2007-12-07 14:55:00', '3', 10, 
'5', 4, '2')):
    C:/Program Files/NetBeans 6.0 Beta 
2/ruby1/jruby-1.0.1/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/transactions.rb:101:in
 `transaction'


 Tried to verify with trunk but getting a different error.


----------------------------------------------------------------------

Comment By: Tomohiro Nakashima (to-nakashima)
Date: 2007-10-29 23: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 08: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

Reply via email to