>>> On Mon, Dec 17, 2007 at 1:58 PM, in message <[EMAIL PROTECTED]>, "Pedro Gimeno" <[EMAIL PROTECTED]> wrote: > Description: Nonstandard precedence for comparison operators > The operators <>, <= and >= are expected to have the same precedence as =, < > and >, but according to the docs (and matching actual behaviour) they have > the same precedence as e.g. ||. > > This leads to surprises > Of course the same applies to != since it is converted to <>. > > Now being picky, the precedence of < and > should be the same as that of = > (for comparison, not for assignment), which makes a difference in rare cases Everything Pedro said in this post matched my understanding of the SQL specification. I went back and read those sections closely, and I can't find any basis for interpreting the spec any other way. This seems like a pretty serious point of non-compliance to me. That said, bringing PostgreSQL into compliance with the standard would undoubtedly break some people's existing applications. It seems to call for the same phased approach as the standard conforming string literals, with GUCs to control warnings for problem constructs and legacy versus standard runtime behavior. -Kevin
---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq