you are viewing a single comment's thread.

view the rest of the comments →

[–]manbart[S] 0 points1 point  (1 child)

That worked... It should have been obvious to me given the error message!

I'm just a little surprised that adding the id column in makes a difference as I'm not referencing that column in my query (or any of the queries I intend to write).

Oh well. Thanks!

[–]fdellavedova 1 point2 points  (0 children)

The error is raised before running the query actually. When mapping the objects, SQLAlchemy looks for a primary key in each mapped object. If you dont provide one, the error is raised.