On Sep 8, 2011, at 10:45 AM, Jeremy Evans wrote:

> On Sep 8, 6:46 am, Will Gorman <[email protected]> wrote:
>> Is it possible to get an autoincremented primary key from a sequence when
>> inserting with Oracle for an existing table that wasn't created with Sequel?
>>  From what I can see from the code and based on this thread
>> (https://groups.google.com/d/topic/sequel-talk/fDYJABDjqDU/discussion) it
>> looks like it relies on creating a trigger to get the next sequence value on
>> an insert.  Is that the only way that's currently supported?
> 
> Probably.  If you have a sequence without a trigger that requires you
> get the next sequence value before the insert, I don't think Sequel
> handles that automatically.  For models, you can easily use a
> before_create hook to do so.
> 
> I'm definitely willing to accept patches in this area.  I don't have
> access to an Oracle installation, so improvements would probably have
> to be contributed by others.

I have a bit of Ruby experience, and am looking to improve.  I have access to 
Oracle and would be happy to test and/or [attempt to] implement patches/changes 
under your tutelage.  Let me know if you'd like me to test something for you.

Brian Stevens


-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to