Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit341e360

Browse files
committed
Sorry, guys. Here is the ultimate patch which keeps the entire
behavior as it was, apart from forbidding minus-terminatedoperators. Seems that I have to break the habit of doing beforethinking properly :-/ The point is that my second patch breaksconstructs like a & b or a ! b. This patch is to be appliedinstead of any of two other today's patches.Leon
1 parent283da86 commit341e360

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/parser/scan.l

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.55 1999/09/2719:40:40 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.56 1999/09/2721:02:54 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -151,7 +151,7 @@ typecast"::"
151151

152152
self[,()\[\].;$\:\+\-\*\/\%\^\<\>\=\|]
153153
op_and_self[\~\!\@\#\^\&\|\`\?\$\:\+\-\*\/\%\<\>\=]
154-
operator{op_and_self}+
154+
operator{op_and_self}|({op_and_self}+[\~\!\@\#\^\&\|\`\?\$\:\+\*\/\%\<\>\=])
155155

156156
/* we do not allow unary minus in numbers.
157157
* instead we pass it verbatim to parser. there it gets

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp