might be tricky, there's self_group() and Grouping(), you can probably use the 
latter explicitly.



On Sep 10, 2014, at 6:46 PM, Jonathan Vanasco <jonat...@findmeon.com> wrote:

> SqlAlchemy's formatting is sometimes getting in the way while debugging 
> complex queries
> 
> Does anyone have a trick to explicitly print parenthesis in queries?  That 
> would make some of these queries easier to follow and/or regex
> 
> for example:
> 
> sqlalchemy generates stuff like this:
>     x OR y AND z 
> 
> but we want to see:
>    x OR (y AND z) 
> 
> 
> 
> -- 
> 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 sqlalchemy+unsubscr...@googlegroups.com.
> To post to this group, send email to sqlalchemy@googlegroups.com.
> Visit this group at http://groups.google.com/group/sqlalchemy.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to