Sorry, guys. Here is the ultimate patch which keeps the entire
authorBruce Momjian <bruce@momjian.us>
Mon, 27 Sep 1999 21:02:54 +0000 (21:02 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 27 Sep 1999 21:02:54 +0000 (21:02 +0000)
behavior as it was, apart from forbidding minus-terminated
operators. Seems that I have to break the habit of doing before
thinking properly :-/  The point is that my second patch breaks
constructs like a & b  or   a ! b. This patch is to be applied
instead of any of two other today's patches.

Leon

src/backend/parser/scan.l

index 5091149e609388b58c38268b929be8596cda3b19..0f33ca774a7f8d1fe8f28c2e5379da0b9844f5aa 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.55 1999/09/27 19:40:40 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.56 1999/09/27 21:02:54 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -151,7 +151,7 @@ typecast        "::"
 
 self           [,()\[\].;$\:\+\-\*\/\%\^\<\>\=\|]
 op_and_self        [\~\!\@\#\^\&\|\`\?\$\:\+\-\*\/\%\<\>\=]
-operator       {op_and_self}+
+operator   {op_and_self}|({op_and_self}+[\~\!\@\#\^\&\|\`\?\$\:\+\*\/\%\<\>\=])
 
 /* we do not allow unary minus in numbers. 
  * instead we pass it verbatim to parser. there it gets