Re: [PATCHES] IPv6 patch doesn't work fine

From: Kris Jurka <books(at)ejurka(dot)com>
To: Kurt Roeckx <Q(at)ping(dot)be>
Cc: Manuel Gil Pérez <manuel(at)dif(dot)um(dot)es>, <pgsql-patches(at)postgresql(dot)org>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [PATCHES] IPv6 patch doesn't work fine
Date: 2003-06-29 11:22:04
Message-ID: Pine.LNX.4.33.0306290719150.25432-200000@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc pgsql-patches

On Sat, 28 Jun 2003, Kurt Roeckx wrote:

> On Thu, Jun 26, 2003 at 08:02:01AM -0400, Kris Jurka wrote:
> >
> >
> > On Thu, 26 Jun 2003, Manuel Gil [iso-8859-1] Prez wrote:
> >
> > > Hi all.
> > >
> > > I have a Java application that it connects to the PostgreSQL database with
> > > IPv6 patch installed.
> > >
> > What exactly do you have for the URL in the first argument to
> > getConnection? If you have a direct IPv6 address like
> > jdbc:postgresql://::1 it will not work at the moment because it tries to
> > parse the url using the colon as a delimiter which works fine for IPv4
> > addresses, but not IPv6 see org.postgresql.Driver#parseURL for more info.
> >
> > What happens if you are using a name that resolves to an IPv6 address?
> > You're probably the first person to actually try this. I will look into
> > this further, but it may take me a while to get IPv6 up and running on my
> > machine.
>
> Did you get it working yet?
>
>
> Kurt
>

The following patch allows you to connect using an IPv6 address by
enclosing it in square brackets.

jdbc:postgresql://[::1]:5432/dbname

Additionally some minor cleanup to JDBC docs, adding <acronym> tags,
mentioning JDBC 3 support, and cross referencing the installation
instructions.

Kris Jurka

Attachment Content-Type Size
IPv6.diff text/plain 11.5 KB

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Olivier BULLAT 2003-06-30 08:59:09 java.lang.NullPointerException on imbricated queries
Previous Message Paul Thomas 2003-06-29 09:22:23 Re: Most Performant JDBC Driver?

Browse pgsql-patches by date

  From Date Subject
Next Message Darko Prenosil 2003-06-29 13:51:39 Re: [webmaster] .pot files are unavailable (?)
Previous Message Peter Eisentraut 2003-06-29 10:38:04 Re: [webmaster] .pot files are unavailable (?)