[Rails] Re: Oracle Bug

Ivan Medda
Wed, 01 Mar 2006 15:11:36 -0000

Thanks Chris,
But now the compiler tell me it:

invalid column name: INSERT INTO ago.prova_stats (cognome, nome, id,
telefono) VALUES(''Medda'', ''Ivan'', :id,
70565611)

where ago.prova_stats is the table used by me and that have only the
columns ''cognome'',''nome'' and
''telefono''.
My table hasn''t the column ''id''(???).Why Rails search
it?
Ivan.



Chris wrote:
> You need to create an oracle sequence that is named TableName_seq, that
> should do it.
>
> This is how to create a sequence:
>
> CREATE SEQUENCE TABLENAME_SEQ INCREMENT BY 1 START WITH 100
>
> Chris