Mailing List webobjects-dev@wocommunity.org Message #47
From: OCsite <webobjects-dev@wocommunity.org>
Subject: EOQualifier.qualifierWithQualifierFormat ignores proper AND/OR precedence?!?
Date: Mon, 15 Feb 2021 14:47:12 +0100
To: WebObjects & WOnder Development <webobjects-dev@wocommunity.org>
Hi there,

is it normal that

EOQualifier.qualifierWithQualifierFormat("userType = 12 OR userType = 6 AND subjectType = 3",null)

creates

(((userType = 12) or (userType = 6)) and (subjectType = 3))

? Seems wrong, does it not? AND should always have higher operator precedence than OR, should it not? I was just bit in my tender parts by this, and I wonder whether this is the standard behaviour or some weird quirk.

Thanks,
OC

Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster