Search Postgresql Archives

Re: Problem calling setweight function from JDBC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



=?UTF-8?B?VmlsaWFtIMSOdXJpbmE=?= <viliam.durina@xxxxxxx> 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

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux