one more error in ACP, took me a day to find and separate. it's very simple and very basic... ClauseAdapter does not work. -------------- from sqlalchemy import * from sqlalchemy.sql.util import ClauseAdapter m = MetaData() a=Table( 'a',m, Column( 'id', Integer, primary_key=True), Column( 'xxx_id', Integer, ForeignKey( 'a.id', name='adf', use_alter=True ) ) )
e = (a.c.id == a.c.xxx_id) print e b = a.alias() #print b.c.id == 0 r = ClauseAdapter( b, include= set([ a.c.id ]), equivalents= { a.c.id: set([ a.c.id]) } ).traverse( e) print e ######### results #in r3726: (OK) a.id = a.xxx_id a_1.id = a.xxx_id #in r3727 - as well as in r3760: a.id = a.xxx_id a.id = a.xxx_id it does generate proper thing in ClauseAdapter.conv_element()/newcol but it gets lost in the way --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---