On Mar 28, 2008, at 1:36 PM, Julien wrote:

>
> in fact all the problem is that I can't generate the following query:
>
> SELECT xx.yy, (SELECT xx.yy WHERE cond) FROM foobar xx;
>
> where xx.yy are the same columns
>
> SQLAlchemy generates :
>
> SELECT xx.yy, (SELECT xx.yy FROM foobar xx WHERE cond) FROM foobar xx;

This feature has been added in r4366 (it really means we no longer  
check for "over" correlation):

         t = table('t', column('a'), column('b'))
         s = select([t.c.a]).where(t.c.a==1).correlate(t).as_scalar()

         s2 = select([t.c.a, s])
         self.assert_compile(s2, """SELECT t.a, (SELECT t.a WHERE t.a  
= :t_a_1) AS anon_1 FROM t""")



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to