Re: CachedRowSetXImpl() and PostgreSQL

Поиск
Список
Период
Сортировка
От Poul Møller Hansen
Тема Re: CachedRowSetXImpl() and PostgreSQL
Дата
Msg-id 45130543.7080609@pbnet.dk
обсуждение исходный текст
Ответ на Re: CachedRowSetXImpl() and PostgreSQL  (Oliver Jowett <oliver@opencloud.com>)
Ответы Re: CachedRowSetXImpl() and PostgreSQL
Список pgsql-jdbc
> What we need to know is what is the metadata call being made to the
> driver and how do the results differ from what is expected?
>
That's pretty much hidden behind the curtains in the Java classes. How
can I log that ?

> BTW, it's possible to have a table called "my.table" (where "my." is
> part of the table name, not a schema prefix) so the driver seems to be
> doing the right thing if it is being asked about tables called
> "my.table" by the RowSet .. But that's why we need to know what
> metadata call is being made.
>
my is the schema name. I have tried 3 setups:
1. setting setTableName("my.table");
2. setTableName("table");
3. setSchemaName("my");  setTableName("table");

And none of them works. When getting the metadata from pg_catalog the
schema name must be left out
and when doing update the schema name must be included or it can't find
the relation.
It's like the setSchemaName has no effect
> I think finding out why setSchemaName on your rowset does not work is
> the first step, that RuntimeException tells me nothing about the real
> cause of the problem.
Exactly, but I'm clueless how.


Poul


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: CachedRowSetXImpl() and PostgreSQL
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: CachedRowSetXImpl() and PostgreSQL