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