On Wed, May 11, 2011 at 12:57:32AM -0700, Consu wrote:
> Hello,
> 
> 
> Arel::SelectManager (arel 2.0.9) uses following statement to insert a
> new record:
> 
> 
> @engine.connection.insert im.to_sql, 'AREL', primary_key_name,
> primary_key_value
> 
> 
> But in DatabaseStatements insert ist defined as:
> 
> insert(sql, name = nil, pk = nil, id_value = nil, sequence_name = nil)
> 
> Actually, Arel::SelectManager does not use the sequence name. This
> leads to issues for instance with
> activerecord-jdbc-adapter and Oracle, when you use sequence names
> ignoring rails conventions.
> 
> Is it possible to fix this issue?

Can you provide a test case to reproduce the problem?  We run a CI
against Oracle, and all the tests are green.  If you could give us a
test to show the problem, I could fix it.

-- 
Aaron Patterson
http://tenderlovemaking.com/

Attachment: pgpaT9NoGOvBH.pgp
Description: PGP signature

Reply via email to