Re: Patch adding name for NotImplemented

Lists: pgsql-jdbc
From: "Xavier Poinsard" <xpoinsard(at)free(dot)fr>
To: pgsql-jdbc <pgsql-jdbc(at)postgresql(dot)org>
Subject: Patch adding name for NotImplemented
Date: 2005-02-11 08:50:54
Message-ID: 420C71EE.5020004@free.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

I had some time in the train, so here is a patch adding function name to
notImplemented().
At least it could be help find what function Crystal Report is calling.

Attachment Content-Type Size
patchNotImplemented.txt.gz application/x-gzip 3.3 KB

From: Kris Jurka <books(at)ejurka(dot)com>
To: Xavier Poinsard <xpoinsard(at)free(dot)fr>
Cc: pgsql-jdbc <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Patch adding name for NotImplemented
Date: 2005-02-11 09:06:38
Message-ID: Pine.BSO.4.56.0502110359001.4922@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

On Fri, 11 Feb 2005, Xavier Poinsard wrote:

> I had some time in the train, so here is a patch adding function name to
> notImplemented().

It seems reather inconsistent, it uses all of the following description
types:
- Blob.truncate
- setBinaryStream
- getArray With Map
- fetch(ResultCursor, ResultHandler, int)

These need to be consistent. Also some of the claims are inaccurate, for
example Statement.setURL, Statement.getURL are actually from
PreparedStatement and CallableStatement respectively.

Finally this patch doesn't actually have a change to Driver.notImplemented
to make it work.

Kris Jurka


From: "Xavier Poinsard" <xpoinsard(at)free(dot)fr>
To: Kris Jurka <books(at)ejurka(dot)com>
Cc: pgsql-jdbc <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Patch adding name for NotImplemented
Date: 2005-02-11 09:34:46
Message-ID: 420C7C36.9080701@free.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

Kris Jurka wrote:
>
> On Fri, 11 Feb 2005, Xavier Poinsard wrote:
>
>
>>I had some time in the train, so here is a patch adding function name to
>> notImplemented().
>
>
> It seems reather inconsistent, it uses all of the following description
> types:
> - Blob.truncate
> - setBinaryStream
> - getArray With Map
> - fetch(ResultCursor, ResultHandler, int)

Yes, I changed my mind during the process. I will try to clear some issues.

One problem is that the Exception is sometime used not for an entire
function but only when the function is used with a particular argument.
Other functions with same names are only implement with some sets of
arguments.

Would you prefer the full version :

Interface.functionname(type1,type2) ?

>
> These need to be consistent. Also some of the claims are inaccurate, for
> example Statement.setURL, Statement.getURL are actually from
> PreparedStatement and CallableStatement respectively.

It will require additional work since I will have to look not only in
the code.

>
> Finally this patch doesn't actually have a change to Driver.notImplemented
> to make it work.

Oops, I missed Driver.java.in.

>
> Kris Jurka
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>


From: "Xavier Poinsard" <xpoinsard(at)free(dot)fr>
To: Kris Jurka <books(at)ejurka(dot)com>
Cc: pgsql-jdbc <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Patch adding name for NotImplemented
Date: 2005-02-14 09:55:18
Message-ID: 42107586.8030708@free.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

Kris Jurka wrote:
> It seems reather inconsistent, it uses all of the following description
> types:
> - Blob.truncate
> - setBinaryStream
> - getArray With Map
> - fetch(ResultCursor, ResultHandler, int)
>
> These need to be consistent. Also some of the claims are inaccurate, for
> example Statement.setURL, Statement.getURL are actually from
> PreparedStatement and CallableStatement respectively.
>
> Finally this patch doesn't actually have a change to Driver.notImplemented
> to make it work.

All should be coherent now with full class name (the real implementation
class) and function name (real) with the types of the arguments.
I added some debug calls for special cases where the function is
partially implemented. The use of this.getClass() should help avoiding
excess size for the driver.

Attachment Content-Type Size
patchNotImplemented2.txt.gz application/x-gzip 4.0 KB

From: Kris Jurka <books(at)ejurka(dot)com>
To: Xavier Poinsard <xpoinsard(at)free(dot)fr>
Cc: pgsql-jdbc <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Patch adding name for NotImplemented
Date: 2005-02-15 08:59:00
Message-ID: Pine.BSO.4.56.0502150358170.14585@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

On Mon, 14 Feb 2005, Xavier Poinsard wrote:

> [here's a patch to add info to the notImplemented exception]

Applied to 8.0 and HEAD.

Kris Jurka