Displaying 3 results from an estimated 3 matches for "next_sequence_value".
2010 Feb 24
4
"Sequence does not exist" for joined model
...by/gems/1.8/gems/activerecord-oracle_enhanced-adapter-1.2.3/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:1283:in
`select''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-oracle_enhanced-adapter-1.2.3/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb:606:in
`next_sequence_value''
app/controllers/reviews_controller.rb:27:in `create_association''
Rendering C:/RoRApps/ProjectDB/public/500.html (500 Internal Server
Error)
I believe it''s because of the lack of an ID for the joined model.
Thank you for any advice here.
JohnM
--
Posted via http:/...
2007 Jan 23
7
ActiveRecord requires sequence numbers in Oracle join table
I am mapping ActiveRecord classes to an existing Oracle database. This
means I cannot change the database schema to fit ActiveRecord
conventions.
Predictably, I have gotten into trouble: I have several join tables
that do not have a primary key column, and therefore no number sequence
defined. ActiveRecord insists on requiring a sequence, and gets unhappy
when there is none to find.
Is there a
2009 Dec 30
9
Oracle adapter problem? How to fix this?
...39;'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-oracle-
adapter-1.0.0.9250/lib/active_record/connection_adapters/
oracle_adapter.rb:700:in `exec''
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-oracle-
adapter-1.0.0.9250/lib/active_record/connection_adapters/
oracle_adapter.rb:229:in `next_sequence_value''
app/controllers/datafile_controller.rb:248:in `approval''
However what the real problem was is this:
ORA-01861 Literal Does Not Match Format String
As it turns out (and after lots of research and unless I am crazy
already) the problem seems to be in the INSERT statement that...