Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #1751 (closed defect: duplicate)

Opened 3 years ago

Last modified 3 years ago

[PATCH] Named sequences for oracle

Reported by: crutan@gmail.com Assigned to: David
Priority: normal Milestone:
Component: ActiveRecord Version: 0.13.1
Severity: normal Keywords: activerecord, oci, sequence
Cc:

Description

This patch adds the ability to call 'set_sequence_name' for any activerecord class, just like 'set_table_name' and 'set_primary_key' work. The insert function will pay attention to named sequences with the oci adapter. All other adapters will ignore sequences. Probably integrating this into the postgres adaptor would be good, but I am woefully unfamiliar with postgres!

Test code is in activerecord/test/sequence_test.rb

Attachments

named_sequences_for_oracle.diff (6.6 kB) - added by crutan@gmail.com on 07/15/05 14:32:57.
Patch diff for named sequence implementation.

Change History

07/15/05 14:32:57 changed by crutan@gmail.com

  • attachment named_sequences_for_oracle.diff added.

Patch diff for named sequence implementation.

07/21/05 18:04:16 changed by mschoen

  • status changed from new to closed.
  • resolution set to duplicate.

Obsolete, see Ticket #1798