Mailing List webobjects-dev@wocommunity.org Message #47
จาก: OCsite <webobjects-dev@wocommunity.org>
หัวเรื่อง: EOQualifier.qualifierWithQualifierFormat ignores proper AND/OR precedence?!?
วันที่: Mon, 15 Feb 2021 14:47:12 +0100
ถึง: 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

สมัครสมาชิก (ป้อนข้อมูล) สมัครสมาชิก (ไดเจสท์) สมัครสมาชิก (ดัชนี) ยกเลิกสมาชิก ส่งเมล์ถึงลิสต์มาสเตอร์