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

From Viliam Ďurina
Subject Re: Problem calling setweight function from JDBC
Date
Msg-id 4D92A73D.1060600@kios.sk
Whole thread Raw
In response to Re: Problem calling setweight function from JDBC  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Thank you, this helped.
Viliam

On 24.3.2011 16:08, Tom Lane wrote:
> =?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: Devrim GÜNDÜZ
Date:
Subject: Re: RPM for ODBC driver
Next
From: "Worgan, Craig (Craig)"
Date:
Subject: Re: RPM for ODBC driver