From ada0116e56ae35bb25e45216319d90973ab26e8a Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 25 Sep 2009 20:51:37 +0000 Subject: [PATCH] Remove backup states from Unicode escapes patch --- src/backend/parser/scan.l | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/parser/scan.l b/src/backend/parser/scan.l index fcfe2b3c40..70b595a6fa 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"),