From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Larry Mulcahy <lmulcahy(at)qip(dot)qwest(dot)net> |
Cc: | Dave Cramer <Dave(at)micro-automation(dot)net>, pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: "No class found for inet" |
Date: | 2001-05-30 20:56:03 |
Message-ID: | 200105302056.f4UKu3M00847@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
> Weird, I tried using rs.getString() instead of rs.getObject() and
> it seems to be working OK now.
Well, sort of. It is a string now and not a real IP address, but that
may be fine for you. PostgreSQL transfers fields to clients as
character strings.
>
> Dave Cramer wrote:
> >
> > No, the driver wouldn't be able to handle inet type.
> >
> > This is postgres specific, and isn't supported by the JDBC spec.
> >
> > Dave
> > ----- Original Message -----
> > From: "Larry Mulcahy" <lmulcahy(at)qip(dot)qwest(dot)net>
> > To: <pgsql-jdbc(at)postgresql(dot)org>
> > Sent: Wednesday, May 30, 2001 1:22 PM
> > Subject: [JDBC] "No class found for inet"
> >
> > > I'm using the PostgreSQL 7.1.1 JDBC2 Enterprise driver, compiled
> > > myself on Solaris 8 with the 1.3 JDK.
> > >
> > > I'm trying to access a column of the PostgreSQL datatype 'inet'.
> > > When my program gets to the 'inet' field:
> > >
> > > rs.getObject(3);
> > >
> > > it fails with the exception "no class found for inet".
> > > Does the JDBC driver support all PostgreSQL data types?
>
> --
> Larry Mulcahy lmulcahy(at)qip(dot)qwest(dot)net
> PGP public key at:
> http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0x2C4C5A03
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://www.postgresql.org/search.mpl
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | rui zhong | 2001-05-30 23:08:59 | Does ASSERTION constraint work ? |
Previous Message | Larry Mulcahy | 2001-05-30 20:35:27 | Re: "No class found for inet" |