Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Praveen Devarao
RE: Fix honoring :primary_key option when joining [ reply ]  
2010-10-07 12:11
Hi Rasmus,

Thanks for pointing to the fix.

I will need some time to look into this to ensure there will be no regression. If every thing goes fine then we could take up the fix and apply it.

Thanks

Praveen

By: Rasmus Bergholdt
Fix honoring :primary_key option when joining [ reply ]  
2010-10-07 11:31
When using belongs_to with :primary_key option ibm_db_pstmt.rb uses the primary key defined on the ActiveRecord class.

I have tried changing the code according to this fix, and it works.
http://github.com/rails/rails/commit/63026541b209cc11ffd74cf3ca04b89d1e437737

Regards
Rasmus