Re: getMetaData().getTables() behaviour with JDBC3 8.3 & 8.4 drivers on windows
В списке pgsql-jdbc по дате отправления:
| От | dmp |
|---|---|
| Тема | Re: getMetaData().getTables() behaviour with JDBC3 8.3 & 8.4 drivers on windows |
| Дата | |
| Msg-id | 4C505498.5070506@ttc-cmc.net обсуждение исходный текст |
| Ответ на | getMetaData().getTables() behaviour with JDBC3 8.3 & 8.4 drivers on windows ("Panon, Paul-Andre" <Paul-AndrePanon@SierraSystems.com>) |
| Список | pgsql-jdbc |
>
>
>The PostgreSQL driver appears to be causing some unexpected behaviour for the OpenNMS installer on Windows.
>
>In the following code snippet, the table row set returned includes TABLEs, SEQUENCEs, and INDEXes. Shouldn't getTables
befiltering out and returning only tables and views?
>
> public void databaseSetUser() throws SQLException {
> Connection adminConn = getAdminConnection();
> ResultSet rs = adminConn.getMetaData().getTables(null, "public", "%", null);
>
In your argument for getTables(catalog, schemaPattern, tableNamePattern,
tableTypes) you
have specified a null for the tableTypes. That I believe does not place
any restrictions on
the returned table, so VIEW and other types will be returned.
types - A list of table types, which must be from the list of table
types returned from getTableTypes(), to include; null returns
all types.
danap
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера