]> granicus.if.org Git - postgresql/commitdiff
Make text search parser accept underscores in XML attributes (bug #5075)
authorPeter Eisentraut <peter_e@gmx.net>
Sun, 15 Nov 2009 13:54:22 +0000 (13:54 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Sun, 15 Nov 2009 13:54:22 +0000 (13:54 +0000)
src/backend/tsearch/wparser_def.c

index dab9f27939af4683eb1163a84272e025f94cfaab..5c76b0cfdad61c9e4306c68ad75d549d4c4e99cb 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/tsearch/wparser_def.c,v 1.14.2.5 2009/03/10 17:33:53 teodor Exp $
+ *       $PostgreSQL: pgsql/src/backend/tsearch/wparser_def.c,v 1.14.2.6 2009/11/15 13:54:22 petere Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -936,6 +936,7 @@ static const TParserStateActionItem actionTPS_InTag[] = {
        {p_isdigit, 0, A_NEXT, TPS_Null, 0, NULL},
        {p_iseqC, '=', A_NEXT, TPS_Null, 0, NULL},
        {p_iseqC, '-', A_NEXT, TPS_Null, 0, NULL},
+       {p_iseqC, '_', A_NEXT, TPS_Null, 0, NULL},
        {p_iseqC, '#', A_NEXT, TPS_Null, 0, NULL},
        {p_iseqC, '/', A_NEXT, TPS_Null, 0, NULL},
        {p_iseqC, ':', A_NEXT, TPS_Null, 0, NULL},