Mailing List webobjects-dev@wocommunity.org Messaggio #47
Da: OCsite <webobjects-dev@wocommunity.org>
Oggetto: EOQualifier.qualifierWithQualifierFormat ignores proper AND/OR precedence?!?
Data: Mon, 15 Feb 2021 14:47:12 +0100
A: 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

Iscrizione modo messaggi Iscrizione modo riassunto Iscrizione modo index Cancella Scrivi al Listmaster