query.filter_or() ?

2 views
Skip to first unread message

svilen

unread,
Dec 20, 2007, 5:14:11 AM12/20/07
to sqlal...@googlegroups.com
query.filter() does criterion = criterion & new
why not having one that does criterion = criterion | new ?
its useful to have some query.this.that.filter.whatever.filter_or(...)

Rick Morrison

unread,
Dec 20, 2007, 9:06:53 AM12/20/07
to sqlal...@googlegroups.com
How would you specify the logical "parenthesis" to control evaluation order in complex expressions?

svilen

unread,
Dec 20, 2007, 10:41:52 AM12/20/07
to sqlal...@googlegroups.com
On Thursday 20 December 2007 16:06:53 Rick Morrison wrote:
> How would you specify the logical "parenthesis" to control
> evaluation order in complex expressions?
something like joinpoint? or maybe, a semi-explicit ".parethnesis()"
of sorts...
dunnow, but this is a thing that's missing; one has to build those
complex expressions by hand and shove it to .filter() - or worse,
to .from_statement(). And the whole nice query.machinery (joins,
grouping etc) goes away...

no, i'm not about an OQL; it's just a wish...
(while diggin the dbcook filter-expressions translator i found that i
am duplicating code that is already there in the Query, doing same
thing in slightly different angle)

Reply all
Reply to author
Forward
0 new messages