On Aug 17, 2007, at 4:21 AM, Glauco wrote:
>
> SQLError: (ProgrammingError) relation "scadenziario_id_piano_seq" does
> not exist
> 'select nextval(\'"scadenziario_id_piano_seq"\')' {}
>
> but............
>
> the table is:
>
>
> CREATE TABLE scadenziario (
> id_piano INTEGER NOT NULL references piano(id),
> data_creazione DATE,
> data_programmata DATE NOT NULL,
> cod_verifica TEXT NOT NULL references
> verifica(codice) ON UPDATE CASCADE,
> );
>
>
>
> How and why SQLAlchemy read a serial for the id_piano column ?
try setting autoincrement=False on the "id_piano" Column object. but
regardless, youll need to have a non-None value for inserts to this
column.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" 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/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---