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

Commitada0116

Browse files
committed
Remove backup states from Unicode escapes patch
1 parente33eeb2 commitada0116

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/parser/scan.l

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Portions Copyright (c) 1994, Regents of the University of California
2525
*
2626
* IDENTIFICATION
27-
* $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.159 2009/09/22 23:52:53 petere Exp $
27+
* $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.160 2009/09/25 20:51:37 petere Exp $
2828
*
2929
*-------------------------------------------------------------------------
3030
*/
@@ -231,7 +231,7 @@ xeescape[\\][^0-7]
231231
xeoctesc[\\][0-7]{1,3}
232232
xehexesc[\\]x[0-9A-Fa-f]{1,2}
233233
xeunicode[\\](u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})
234-
xeunicodebad[\\]([uU])
234+
xeunicodefail[\\](u[0-9A-Fa-f]{0,3}|U[0-9A-Fa-f]{0,7})
235235

236236
/* Extended quote
237237
* xqdouble implements embedded quote, ''''
@@ -575,7 +575,7 @@ other.
575575
<xeu>\n|
576576
<xeu><<EOF>>{yyerror("invalid Unicode surrogate pair"); }
577577

578-
<xe>{xeunicodebad}{
578+
<xe,xeu>{xeunicodefail}{
579579
ereport(ERROR,
580580
(errcode(ERRCODE_INVALID_ESCAPE_SEQUENCE),
581581
errmsg("invalid Unicode escape"),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp