Re: [GENERAL] Problem calling setweight function from JDBC

2011-03-29 Thread Viliam ġurina
Thank you, this helped. Viliam On 24.3.2011 16:08, Tom Lane wrote: =?UTF-8?B?VmlsaWFtIMSOdXJpbmE=?= 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 :

Re: [GENERAL] Problem calling setweight function from JDBC

2011-03-24 Thread Tom Lane
=?UTF-8?B?VmlsaWFtIMSOdXJpbmE=?= 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 withou