SQL precedence will evaluate the AND's before the OR's. So unless there is an OR condition embedded within a series of AND's the parenthesis are not needed. I do agree that using parenthesis can make the intent clearer, but will not change the result.
The clauses a AND b OR c (a AND b) OR c are equivalent. When a or b is a complex condition that also has OR then parenthesis are probably needed. In this case, it appears that the condition is an OR of two conditions that consist entirely of AND conditions. If that is the case then parenthesis are not required. -- Mike Conley --~--~---------~--~----~------------~-------~--~----~ 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 sqlalchemy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---