On Mar 31, 2011, at 11:29 AM, farcat wrote: > Hi, > > I am getting the following error after creating a number of classes > through metaclasses: > > File "C:\python27\lib\site-packages\sqlalchemy\dialects\sqlite > \base.py", line 280, in visit_foreign_key_constraint > if local_table.schema != remote_table.schema: > AttributeError: 'NoneType' object has no attribute 'schema' > > Before I paste in any code (would need quite a lot), can anyone point > me in the right direction?
There's a Column not attached to a Table somewhere. Like, if you are creating a copy of a column, giving that to a table, but then the original is what you put in ForeignKey. > > > -- > 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. > -- 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.
