Re: Bit string type in PreparedStatement

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: Bit string type in PreparedStatement
Дата
Msg-id 425EE184.8060303@opencloud.com
обсуждение исходный текст
Ответ на Bit string type in PreparedStatement  (bst <bst_co@yahoo.com>)
Ответы Getting the number or row returned by a select. Alway tought it was not possible until I say pgAdmin who gives it  (David Gagnon <dgagnon@siunik.com>)
Список pgsql-jdbc
bst wrote:

> CREATE TABLE test (a BIT(8));

> How can I set bit string field in PreparedStatement?

As far as I can tell, there's no standard way to do this; the JDBC spec
thinks BIT is just like BOOLEAN.

You could use setString() and an explicit cast to bit(8) in your query,
perhaps..

-O

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Nelson Arapé
Дата:
Сообщение: Re: process large tables
Следующее
От: Vernon
Дата:
Сообщение: Error with a hibernate query