[Sqlalchemy-tickets] Issue #3281: aliased() not working with subquery (zzzeek/sqlalchemy)
Brought to you by:
zzzeek
|
From: Iurie G. <iss...@bi...> - 2014-12-23 10:10:38
|
New issue 3281: aliased() not working with subquery https://bitbucket.org/zzzeek/sqlalchemy/issue/3281/aliased-not-working-with-subquery Iurie Gheorghies: bla = literal_column('1', Integer) temp = s.query(bla.label('bla')).subquery() acc = aliased(Account, 'acc') s.query(acc, temp).join(temp, temp.c.bla == acc.id).all() raises AttributeError: 'str' object has no attribute 'corresponding_column' |