Re: Help:updateRow() with CIDR types

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: Help:updateRow() with CIDR types
Дата
Msg-id 4088637C.6080802@opencloud.com
обсуждение исходный текст
Ответ на Help:updateRow() with CIDR types  (Moray Taylor <mugen@the400.homeunix.com>)
Ответы Re: Help:updateRow() with CIDR types
Список pgsql-jdbc
Moray Taylor wrote:
> Hi,
>
> I'm having some trouble updating CIDR types using jdbc, I use
> updateObject() to change it, which goes OK, but when I do an
> updateRow(), I get this error
>
> java.sql.SQLException: ERROR: invalid cidr value: "1.1.1.1/4"
>     at
> org.postgresql.jdbc2.AbstractJdbc2ResultSet.updateRow(AbstractJdbc2Resul
> tSet.java:1117)

What object type and SQL typecode are you passing to updateObject()? Can
we see that bit of code?

Turn on log_statement on the backend; what is the entire query that errors?

 From memory the driver doesn't really have support for CIDR types other
than as raw strings, but that might have changed..

-O

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

Предыдущее
От: Moray Taylor
Дата:
Сообщение: Help:updateRow() with CIDR types
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: JDBC rowsets