no .add_entity_attr(A.attr) equivalent to add_entity(X)

Issue #1189 resolved
Former user created an issue

the query allows x = query( A, B.attr, Ctable.c.column).whatever.. * there is add_entity(X) and X is treated as mapper/class * there is add_column(X) and X is treated as sql Column * but there's no way to add B.attr later - neither above funcs can take it

Comments (2)

  1. Mike Bayer repo owner
    print '\n (a,b.name)...\n',   sess.query( A,B.name).all()
    print '\n a...add(b.name)\n', sess.query( A).add_column( B.name).all()
    

    both generate identical SQL and return the identical result.

  2. Log in to comment