The following gives: Session.query(Topic).from_statement("select * from topics").all()
gives the following error: AssertionError: No such polymorphic_identity 'R' is defined This happens for any object that has a polymorphic identity. How can I use literal SQL in such cases? Thanks. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To view this discussion on the web visit https://groups.google.com/d/msg/sqlalchemy/-/kH4euomHPUcJ. To post to this group, send email to sqlalchemy@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.