Re: Problem calling setweight function from JDBC

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Viliam Ďurina <viliam(dot)durina(at)kios(dot)sk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Problem calling setweight function from JDBC
Date: 2011-03-24 15:08:22
Message-ID: 24821.1300979302@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?UTF-8?B?VmlsaWFtIMSOdXJpbmE=?= <viliam(dot)durina(at)kios(dot)sk> writes:
> I have a call to setweight function in a PreparedStatement with the following sql:

> update my_table set a_text_data=setweight(to_tsvector(? :: regconfig, ?), ? :: char)

Make that ::"char" not ::char ... the quotes matter here, because char
without quotes is a keyword.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2011-03-24 15:09:21 Re: What does error "psql: Kerberos 5 authentication not supported" means?
Previous Message Tom Lane 2011-03-24 15:00:44 Re: Deadlock in libpq