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

index 3d3409dac697a361df33d0bf145addbbf86e0161..850b8398258c9d4a20816b7c0a88fd8d009f5680 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/tsearch/wparser_def.c,v 1.24 2009/07/16 06:33:44 petere Exp $
+ *       $PostgreSQL: pgsql/src/backend/tsearch/wparser_def.c,v 1.25 2009/11/15 13:57:01 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},