Re: 'FATAL: database "null" does not exist ' when accessing - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: 'FATAL: database "null" does not exist ' when accessing
Date
Msg-id 43C8DEA8.5020703@opencloud.com
Whole thread Raw
In response to 'FATAL: database "null" does not exist ' when accessing through a datasource  ("Joeseph Blowseph" <joseph_blowseph@hotmail.com>)
Responses Re: 'FATAL: database "null" does not exist ' when accessing through a  ("Joeseph Blowseph" <joseph_blowseph@hotmail.com>)
List pgsql-jdbc
Joeseph Blowseph wrote:

> DataSourceClass:    org.postgresql.ds.PGSimpleDataSource
> JNDI Name:                jdbc/PGSimple
> URL:                          jdbc:postgresql://localhost:5432/PGSQL1

If you're using a DataSource, then the internal JDBC URL to use is
constructed from the parameters used to configure the datasource
(setDatabaseName, etc).

I don't know what your container is doing with the "JDBC URL" bit, but
AFAIK it's not used by the datasource at all.

-O

pgsql-jdbc by date:

Previous
From: "Joeseph Blowseph"
Date:
Subject: 'FATAL: database "null" does not exist ' when accessing through a datasource
Next
From: "Joeseph Blowseph"
Date:
Subject: Re: 'FATAL: database "null" does not exist ' when accessing through a