BUG #2527: Contrib - tsearch2 - ' as first char for in to_tsquery()

From: "Lance Rushing" <lance_rushing(at)hotmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #2527: Contrib - tsearch2 - ' as first char for in to_tsquery()
Date: 2006-07-13 01:26:10
Message-ID: 200607130126.k6D1QAnk048041@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 2527
Logged by: Lance Rushing
Email address: lance_rushing(at)hotmail(dot)com
PostgreSQL version: 8.1.1
Operating system: SuSE
Description: Contrib - tsearch2 - ' as first char for in to_tsquery()
Details:

Not sure if this is a best place to report, but..

When using to_tsquery(TEXT,TEXT) I enounter an error when the first
character is an apostrophe.

non-error example:
select to_tsquery('default'::text, 'o\'brien'::text);
to_tsquery
---------------
'o' & 'brien'

Example of error:
select to_tsquery('default'::text, '\'brien'::text);
ERROR: syntax error

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Fuhr 2006-07-13 03:48:06 Re: BUG #2526: records lost
Previous Message Félix Rodríguez Figueroa 2006-07-13 01:12:17 para no usar Oracle