Re: Checking is TSearch2 query is valid - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Checking is TSearch2 query is valid
Date
Msg-id 20070910154011.GD5112@alvh.no-ip.org
Whole thread Raw
In response to Re: Checking is TSearch2 query is valid  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Checking is TSearch2 query is valid
List pgsql-general
Tom Lane wrote:
> Benjamin Arai <me@benjaminarai.com> 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"

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Time Zone design issues
Next
From: rihad
Date:
Subject: cast time interval to seconds