Re: Driver does not report all catalogs
От | Kris Jurka |
---|---|
Тема | Re: Driver does not report all catalogs |
Дата | |
Msg-id | Pine.BSO.4.61.0511300456220.3672@leary.csoft.net обсуждение исходный текст |
Ответ на | Driver does not report all catalogs (Martin Keller <martin.keller@unitedplanet.de>) |
Список | pgsql-jdbc |
On Wed, 30 Nov 2005, Martin Keller wrote: > Yes, we are using the names for building connection urls and so far you are > right, that this is a database dependent task. There is some user interaction > neccessary, if user credentials differ. Our code related to this works for > years now and most parts of it are portable, some are not. > I understand and respect your opinion but you should consider, that changing > driver behaviour this way is a dangerous thing. It does not meet the spec > (the spec only says, what DatabaseMetaData.getCatalogs() has to do, but not, > that this is dependent on the behavior of any other method) and breaks > existing code. > Keeping this on list is where you are likely to find friends in this discussion. I'd certainly like to hear from any other dissenting or concurring opinions. Perhaps citing the list of other databases that implement getCatalogs as you'd like would be useful. Also noting their stance on setCatalog and metadata would help. Naturally the Javadoc you refer to is vague, it states, "Retrieves the catalog names available in this database." Now clearly my question is available to what? My answer is to call setCatalog or query metadata. Kris Jurka
В списке pgsql-jdbc по дате отправления: