]> 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:55:42 +0000 (13:55 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Sun, 15 Nov 2009 13:55:42 +0000 (13:55 +0000)
src/backend/tsearch/wparser_def.c

index d7d72afddd8ac50d3309bd38ac835cc2bbcac395..02e08d5f2932d77114c13ac1e02b6596ca6273c1 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/tsearch/wparser_def.c,v 1.23 2009/03/11 16:03:40 teodor Exp $
+ *       $PostgreSQL: pgsql/src/backend/tsearch/wparser_def.c,v 1.23.2.1 2009/11/15 13:55:42 petere Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -1225,6 +1225,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},