Make text search parser accept underscores in XML attributes (bug #5075)

This commit is contained in:
Peter Eisentraut 2009-11-15 13:54:22 +00:00
parent d509347c39
commit 87021e7505

View 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},