Mailing Lijst webobjects-dev@wocommunity.org Bericht #47
Van: OCsite <webobjects-dev@wocommunity.org>
Onderwerp: EOQualifier.qualifierWithQualifierFormat ignores proper AND/OR precedence?!?
Datum: Mon, 15 Feb 2021 14:47:12 +0100
Aan: 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

Inschrijven (FEED) Inschrijven (DIGEST) Inschrijven (INDEX) Uitschrijven Mailen naar Listmaster