diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-09-27 21:02:54 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-09-27 21:02:54 +0000 |
commit | 341e360d67e19c03c68f4770ceb82c293f214e33 (patch) | |
tree | 291240824c86eb6a0d9e9e1578b2b2b62e449e01 /src/backend/parser | |
parent | 283da86febb63a98eddff9ff717e0a4405d0bedb (diff) | |
download | postgresql-341e360d67e19c03c68f4770ceb82c293f214e33.tar.gz postgresql-341e360d67e19c03c68f4770ceb82c293f214e33.zip |
Sorry, guys. Here is the ultimate patch which keeps the entire
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
Diffstat (limited to 'src/backend/parser')
-rw-r--r-- | src/backend/parser/scan.l | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/parser/scan.l b/src/backend/parser/scan.l index 5091149e609..0f33ca774a7 100644 --- a/src/backend/parser/scan.l +++ b/src/backend/parser/scan.l @@ -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 |