Skip to content

Commit ada0116

Browse files
committed
Remove backup states from Unicode escapes patch
1 parent e33eeb2 commit ada0116

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy