From: Peter Eisentraut Date: Fri, 25 Sep 2009 20:51:37 +0000 (+0000) Subject: Remove backup states from Unicode escapes patch X-Git-Tag: REL8_5_ALPHA2~68 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ada0116e56ae35bb25e45216319d90973ab26e8a;p=thirdparty%2Fpostgresql.git Remove backup states from Unicode escapes patch --- diff --git a/src/backend/parser/scan.l b/src/backend/parser/scan.l index fcfe2b3c403..70b595a6fa7 100644 --- a/src/backend/parser/scan.l +++ b/src/backend/parser/scan.l @@ -24,7 +24,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.159 2009/09/22 23:52:53 petere Exp $ + * $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.160 2009/09/25 20:51:37 petere Exp $ * *------------------------------------------------------------------------- */ @@ -231,7 +231,7 @@ xeescape [\\][^0-7] xeoctesc [\\][0-7]{1,3} xehexesc [\\]x[0-9A-Fa-f]{1,2} xeunicode [\\](u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8}) -xeunicodebad [\\]([uU]) +xeunicodefail [\\](u[0-9A-Fa-f]{0,3}|U[0-9A-Fa-f]{0,7}) /* Extended quote * xqdouble implements embedded quote, '''' @@ -575,7 +575,7 @@ other . \n | <> { yyerror("invalid Unicode surrogate pair"); } -{xeunicodebad} { +{xeunicodefail} { ereport(ERROR, (errcode(ERRCODE_INVALID_ESCAPE_SEQUENCE), errmsg("invalid Unicode escape"),