Re: inet datatype question! - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: inet datatype question!
Date
Msg-id 1021896719.16927.15.camel@inspiron.cramers
Whole thread Raw
In response to inet datatype question!  (<m.bakirov@transfer.kg>)
Responses SocketException: "catch me if you can"  (Michael Adler <adler@glimpser.org>)
Re: inet datatype question!  (<m.bakirov@transfer.kg>)
List pgsql-jdbc
Hi,

Unfortunately java doesn't have a "type" that corresponds to the
postgres inet type. You can retrieve it as a string however. Use
getString. Of course you will have to parse the string.

Dave
On Mon, 2002-05-20 at 06:41, m.bakirov@transfer.kg wrote:
> Hi all!
>
> Can you help me with the following problem?
>
> I have created a table:
>
> CREATE TABLE(
> src inet,
> dst inet,
> size int);
>
> How can I insert an ip address or a network address into src or dst within
> a Java program, using a Postgresql JDBC driver? - Which method to use? -->
> setXxx?
> Thank you very much!
>
>
>
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>
>




pgsql-jdbc by date:

Previous
From:
Date:
Subject: inet datatype question!
Next
From: Michael Adler
Date:
Subject: SocketException: "catch me if you can"