On Mon, Oct 5, 2009 at 7:35 AM, Rafael Roque
<[email protected]> wrote:
>
> Hi all,
> Suppose my sequence current value is '1' and I save a new record to the
> DB.After I call the save method,the attribute which uses the sequence
> has the value '2',but in the database it is '3'.I´m mapping the sequence
> as follows:
>
> class Viagem < ActiveRecord::Base
>  set_table_name 'xxxx'
>  set_primary_key 'xx'
>  set_sequence_name 'sequence_name'
>
> What could be wrong?
> Thanks,
> Rafael Roque


Which Oracle driver are you using?  I used to have problems with the
older one but now I use the enhanced one and it's been much better.

> gem list --local|grep oracle
activerecord-oracle_enhanced-adapter (1.2.0)


-- 
Greg Donald
http://destiney.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to