db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lance J. Andersen" <Lance.Ander...@Sun.COM>
Subject Re: Connection.getCatalog() returns null and DMD.getCatalogs() returns empty result set
Date Thu, 04 Dec 2008 23:30:52 GMT
Depends on the concept in Derby of what a catalog is as your mileage can 
vary between databases. 

Some vendors treat it as the database name, others do not.

Null is allowed to be returned if the concept of catalog is not 
applicable to a given database


David Van Couvering wrote:
> Shouldn't Connection.getCatalog() return the name of the database you 
> are connected to, and shouldn't DMD.getCatalogs() return a result set 
> with one row, representing the database you're connected to?
> This is causing us a bit of a headache when we're trying to inspect a 
> Derby database in NetBeans...
> Thanks,
> David
> -- 
> David W. Van Couvering
> http://davidvancouvering.blogspot.com

View raw message