Re: Help:updateRow() with CIDR types - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Help:updateRow() with CIDR types
Date
Msg-id 4088637C.6080802@opencloud.com
Whole thread Raw
In response to Help:updateRow() with CIDR types  (Moray Taylor <mugen@the400.homeunix.com>)
Responses Re: Help:updateRow() with CIDR types  (Moray Taylor <mugen@the400.homeunix.com>)
List 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 by date:

Previous
From: Moray Taylor
Date:
Subject: Help:updateRow() with CIDR types
Next
From: Kris Jurka
Date:
Subject: Re: JDBC rowsets