version 0.7.3. I have tables with foreign keys defined, and the orm mapping (with relationships corresponding to the foreign keys) works fine with autoload=True on the tables.
If I persist the metadata then with pickle, and then reload the app using pickled metadata and autoload=False, I get the following: sqlalchemy.exc.ArgumentError: Could not locate any foreign-key- equated, locally mapped column pairs for primaryjoin condition 'client_statuses.client_status_code = clients.client_status_code' on relationship Client.status. Ensure that the referencing Column objects have a ForeignKey present, or are otherwise part of a ForeignKeyConstraint on their parent Table, or specify the foreign_keys parameter to this relationship. For more relaxed rules on join conditions, the relationship may be marked as viewonly=True. Error occurs for both values of extend_existing. Seems to be a regression from 0.6 where it worked ok. -- 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.
