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

Re: Checking is TSearch2 query is valid

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Benjamin Arai <me(at)benjaminarai(dot)com>, PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Checking is TSearch2 query is valid
Date: 2007-09-10 15:40:11
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-general
Tom Lane wrote:
> Benjamin Arai <me(at)benjaminarai(dot)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

Alvaro Herrera        
"El día que dejes de cambiar dejarás de vivir"

In response to


pgsql-general by date

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

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