Skip site navigation (1) Skip section navigation (2)

BUG #5075: Text Search parser does not identify xml tag when attribute name's contains underscore

From: "Marek Lewczuk" <marek(at)lewczuk(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #5075: Text Search parser does not identify xml tag when attribute name's contains underscore
Date: 2009-09-23 12:37:54
Message-ID: 200909231237.n8NCbsi2015381@wwwmaster.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      5075
Logged by:          Marek Lewczuk
Email address:      marek(at)lewczuk(dot)com
PostgreSQL version: 8.4.0
Operating system:   All
Description:        Text Search parser does not identify xml tag when
attribute name's contains underscore
Details: 

Please execute following example:
select * from ts_debug('english', '<img width="182" height="120"
align="right" style="margin: 0px 0px 5px 5px;" test_aa="26461"/>')

As the result you will see, that <img/> is not identified as XML tag, but
rather splitted as words, blank spaces etc. The reason for that is the fact,
that last attribute "test_aa" contains underscore in its name - when the
underscore is removed, then img tag is properly identified as XML tag.

XML definition allows using underscore in tag and attribute names.

Responses

pgsql-bugs by date

Next:From: Hiroshi SaitoDate: 2009-09-23 13:51:18
Subject: Re: BUG #4991: problem with ODBC driver 8.4
Previous:From: NicDate: 2009-09-23 09:04:11
Subject: BUG #5074: segmentation fault in autovacuum

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group