This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When you get the default catalog for Java DB, it's always null
It's actually valid to have a null catalog name for the default catalog. It's better than having *no* default catalog, which would cause all sorts of problems. Here's the response from Lance on the derby-user list: ===== 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 Regards Lance 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
See previous comment...