Re: Problem calling setweight function from JDBC - Mailing list pgsql-general

From Tom Lane
Subject Re: Problem calling setweight function from JDBC
Date
Msg-id 24821.1300979302@sss.pgh.pa.us
Whole thread Raw
In response to Problem calling setweight function from JDBC  (Viliam Ďurina <viliam.durina@kios.sk>)
Responses Re: Problem calling setweight function from JDBC  (Viliam Ďurina <viliam.durina@kios.sk>)
List pgsql-general
=?UTF-8?B?VmlsaWFtIMSOdXJpbmE=?= <viliam.durina@kios.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

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Deadlock in libpq
Next
From: Tom Lane
Date:
Subject: Re: [ADMIN] What does error "psql: Kerberos 5 authentication not supported" means?