Hi all SQLAlchemists,
I'm having some problems with Sequence.
Can someone tell me what is wrong and put me in right way?
The code:
<code>
table1 = Table('table1', metadata,
.... Column('id', types.Integer, Sequence('table1_id_seq'), primary_key=True)
.... )
</code>
Last error message:
<error>
...
File "build\bdist.win32\egg\sqlalchemy\databases\postgres.py", line
631, in visit_sequence
File "build\bdist.win32\egg\sqlalchemy\engine\base.py", line 1680,
in execute_string
File "build\bdist.win32\egg\sqlalchemy\engine\base.py", line 867, in
_cursor_execute
sqlalchemy.exceptions.ProgrammingError: (ProgrammingError) relation
"table1_id_seq" does not exist "select nextval('table1_id_seq')" None
</error>
Thank you all and sorry my bad english.
Schneider
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---