Hi all,

I use automap with database reflection to import schema with sqlalchemy.

In case I have two relationships on same foreign key in some table, only 
one relationship is created by prepare(), the second one seems overwrited.

My table looks like :

Table('thermostat', 
    Base.metadata,
    Column('id', INTEGER(), primary_key=True, nullable=False), 
    Column('idbuiltin', INTEGER(), ForeignKey('device.id')), 
    Column('idthermometer', INTEGER(), ForeignKey('device.id')))

How to control relationship creation to produce two distinct relationships ?

Thank you and Happy New Year !

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to