Re: Support for DatabaseMetadata: getCatalogName, getTableName, getColumnLabel
В списке pgsql-jdbc по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Support for DatabaseMetadata: getCatalogName, getTableName, getColumnLabel |
| Дата | |
| Msg-id | 2557.1167407222@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Support for DatabaseMetadata: getCatalogName, getTableName, getColumnLabel (Dave Cramer <pg@fastcrypt.com>) |
| Ответы |
Re: Support for DatabaseMetadata: getCatalogName, getTableName, getColumnLabel
|
| Список | pgsql-jdbc |
Dave Cramer <pg@fastcrypt.com> writes:
> The backend does not provide us with this information, so it is not
> trivial to implement( or even possible in some cases) .
Huh? We added table oid and column number to the RowDescription message
specifically to support those JDBC methods. You would have to incur an
additional round trip to the server to get names from these numbers,
but it's certainly implementable ... and I thought it'd been implemented
long ago, so I'm a bit surprised by Ken's report.
As for getCatalogName, I think just returning the database name (which
you should still have from the connection request) would meet the spec.
regards, tom lane
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера