Re: [PATCHES] IPv6 patch doesn't work fine
От | Kris Jurka |
---|---|
Тема | Re: [PATCHES] IPv6 patch doesn't work fine |
Дата | |
Msg-id | Pine.LNX.4.33.0306290719150.25432-200000@leary.csoft.net обсуждение исходный текст |
Ответ на | Re: [PATCHES] IPv6 patch doesn't work fine (Kurt Roeckx <Q@ping.be>) |
Ответы |
Re: [PATCHES] IPv6 patch doesn't work fine
|
Список | pgsql-jdbc |
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] P�rez 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
В списке pgsql-jdbc по дате отправления: