From: | Stéphane Chomat <steph_chomat(at)mac(dot)com> |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | localhost not equal at 127.0.0.1 |
Date: | 2001-10-31 16:07:24 |
Message-ID: | 5F43DD34-CE19-11D5-9FB4-003065C28650@mac.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
I test the example corba and i am an exception : "Quelque chose de peu
commun sest produit pour faire ??chouer le gestionnaire. Veuillez
enregistrer cette exception: {0}...". It 's a correct message.
The connection is refused by the server : 'No pg_hba.conf entry for host
217.128.128.146, user user, database dbase' The ip address is not permit
to connect on the server.
But there are a bug : i am not given this ip adresse of my machine. I want
to connect an localhost with 127.0.0.1. When i give this address, it 's ok.
When i give no ip address (ex : jdbc:postgresql:dbase ) or i give
localhost (ex : jdbc:postgresql://localhost/dbase), it take the ip address
of the machine)
I think that this is a bug. I propose to add this ligne at the end of the
method parseURL of the file Driver.java.
String p_PGHOST = urlProps.getProperty("PGHOST");
if (( p_PGHOST == null) || ( p_PGHOST.equals("localhost"))) {
urlProps.put("PGHOST", "127.0.0.1");
}
Stephane Chomat
22 rue Le Brix
38100 Grenoble
603-999-478
steph_chomat(at)mac(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Nick Fankhauser | 2001-10-31 19:58:57 | Re: localhost not equal at 127.0.0.1 |
Previous Message | Nick Fankhauser | 2001-10-31 15:49:49 | DBVisualizer (was RE: Staroffice compatability) |