Re: Checking is TSearch2 query is valid

From: Alvaro Herrera
To: Tom Lane
Cc: Benjamin Arai , PostgreSQL
Subject: Re: Checking is TSearch2 query is valid
Date: 2007-09-10 15:40:11
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Benjamin Arai writes:
> > Is there a specific exception code for:
> > ERROR: no operand in tsearch query: "("
>
> regression=# \set VERBOSITY verbose
> regression=# select to_tsquery('(');
> ERROR: 42601: no operand in tsearch query: "("
> LOCATION: gettoken_query, tsquery.c:163
>
> Seems to be "SYNTAX_ERROR".

Hmm, maybe we should be displaying the textual name of the SQLSTATE
somehow.

--
Alvaro Herrera http://www.amazon.com/gp/registry/5ZYLFMCVHXC
"El día que dejes de cambiar dejarás de vivir"

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message rihad 2007-09-10 15:44:07 cast time interval to seconds
Previous Message Alvaro Herrera 2007-09-10 15:39:07 Re: Time Zone design issues