I have a view in my database with two columns, ID and ModelType. In
my code I want to run a scalar select where passing in an ID will get
the modelType, like so (assume pk is a parameter to a function):
[code]
selectStatement = select([view_id_to_modeltypes.c.ModelType],
view_id_to_modeltypes.c.pk==pk)
[/code]
view_id_to_modeltypes is defined like so:
[code]
view_id_to_modeltypes = Table('id_to_modelType', metaData,
autoload=True)
[/code]
But the line above throws a NoSuchTableError exception. What am I
doing wrong?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---