pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Poul Møller Hansen <freebsd@pbnet.dk>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: CachedRowSetXImpl() and PostgreSQL
Date: Fri, 22 Sep 2006 09:41:18 +1200
Message-ID: <451306FE.8050203@opencloud.com> (raw)
In-Reply-To: <45130543.7080609@pbnet.dk>
References: <45129B84.9000208@pbnet.dk>
	<4512EB32.5080302@pbnet.dk>
	<4512ED36.70600@opencloud.com>
	<4512F6EB.8000701@pbnet.dk>
	<451300BA.7030903@opencloud.com>
	<45130543.7080609@pbnet.dk>

Poul Møller Hansen wrote:
> 
>> 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 ?

Well, we have exactly the same problem, without seeing the code that 
calls the driver it is very difficult to know if the fault lies with the 
driver or the calling code.

I think there are some intercepting JDBC driver wrappers that might help 
you with the "what is the metadata call" bit (I can't remember the name 
of one offhand) but the "how do the results differ" requires some 
knowledge of what the calling code is expecting.. which probably means 
"contact the implementor of your RowSet".

>> 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")

I would expect (3) to be what you need.

>> 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.

Again I think this is going to be "talk to the RowSet implementor" 
unfortunately.

-O



view thread (8+ messages)

Message-ID: <451306FE.8050203@opencloud.com>
Permalink:  ../451306FE.8050203@opencloud.com/
Also on:    postgresql.org/message-id/451306FE.8050203@opencloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com, freebsd@pbnet.dk
  Subject: Re: CachedRowSetXImpl() and PostgreSQL
  In-Reply-To: <451306FE.8050203@opencloud.com>
  References: <45129B84.9000208@pbnet.dk> <4512EB32.5080302@pbnet.dk> <4512ED36.70600@opencloud.com> <4512F6EB.8000701@pbnet.dk> <451300BA.7030903@opencloud.com> <45130543.7080609@pbnet.dk> <451306FE.8050203@opencloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox