Allow for X as well as x to be the prefix for hexadecimal character ref entity numbers,
authorAndrew Dunstan <andrew@dunslane.net>
Sun, 25 Nov 2007 19:35:41 +0000 (19:35 +0000)
committerAndrew Dunstan <andrew@dunslane.net>
Sun, 25 Nov 2007 19:35:41 +0000 (19:35 +0000)
as in HTML.

src/backend/tsearch/wparser_def.c

index df32e285f07545cf2483eba2338dbf8344a47ce8..b0a302b2eab9e174bf732114aca2c7deaeb54ab7 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/tsearch/wparser_def.c,v 1.12 2007/11/25 15:37:11 adunstan Exp $
+ *       $PostgreSQL: pgsql/src/backend/tsearch/wparser_def.c,v 1.13 2007/11/25 19:35:41 adunstan Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -836,6 +836,7 @@ static const TParserStateActionItem actionTPS_InXMLEntity[] = {
 static const TParserStateActionItem actionTPS_InXMLEntityNumFirst[] = {
        {p_isEOF, 0, A_POP, TPS_Null, 0, NULL},
        {p_iseqC, 'x', A_NEXT, TPS_InXMLEntityHexNumFirst, 0, NULL},
+       {p_iseqC, 'X', A_NEXT, TPS_InXMLEntityHexNumFirst, 0, NULL},
        {p_isdigit, 0, A_NEXT, TPS_InXMLEntityNum, 0, NULL},
        {NULL, 0, A_POP, TPS_Null, 0, NULL}
 };