Re: inet datatype question!

From: <m(dot)bakirov(at)transfer(dot)kg>
To: <Dave(at)micro-automation(dot)net>
Cc: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: inet datatype question!
Date: 2002-05-21 03:42:57
Message-ID: 39424.195.151.26.4.1021952577.squirrel@webmail.transfer.kg
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Thank you very much for a reply! If for retrieve I use getString, what
should I use for inserting an inet datatype?
Rgrds...

> 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(dot)bakirov(at)transfer(dot)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
>>
>>
>
>
>
>
> ---------------------------(end of
> broadcast)--------------------------- TIP 6: Have you searched our list
> archives?
>
> http://archives.postgresql.org

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2002-05-21 10:18:05 [Fwd: [HACKERS] JDBC with SSL for postgresql]
Previous Message Dave Cramer 2002-05-21 01:10:43 Re: feature request