|
I'm seeing this as well. Has there been any progress on this bug? See http://stackoverflow.com/questions/7210638/rails-oracle-set-sequence-name-being-ignored Using jruby 1.6.4, rails 3.0.10, activerecord 3.0.10, activerecord-jdbc-adapter 1.1.3, arel 2.0.10 I tried the monkey patch but I'm pretty sure I've got things in the wrong spot. |
|||||||||||||||||||||||||||||||||||||||||
From what I can tell this issue is complicated by the fact that we don't have access to the model metadata down in the insert method in the adapter, and Arel does not pass it along either. It might have to be addressed in ActiveRecord or Arel.
I'd be interested to see what the oracle_enhanced adapter does here.
Your best option for now is to monkeypatch ArJdbc::Oracle#default_sequence_name and put some conditional logic to generate the proper sequences for your application.