File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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]
231231xeoctesc [\\ ][0 -7 ]{1,3 }
232232xehexesc [\\ ]x[0 -9A -Fa -f ]{1,2 }
233233xeunicode [\\ ](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" ),
You can’t perform that action at this time.
0 commit comments