pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedPatch adding name for NotImplemented
5+ messages / 2 participants
[nested] [flat]
* Patch adding name for NotImplemented
@ 2005-02-11 08:50 Xavier Poinsard <xpoinsard@free.fr>
0 siblings, 1 reply; 5+ messages in thread
From: Xavier Poinsard @ 2005-02-11 08:50 UTC (permalink / raw)
To: 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.
Attachments:
patchNotImplemented.txt.gz (application/x-gzip, 3.3K) download
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Patch adding name for NotImplemented
@ 2005-02-11 09:06 Kris Jurka <books@ejurka.com>
parent: Xavier Poinsard <xpoinsard@free.fr>
0 siblings, 2 replies; 5+ messages in thread
From: Kris Jurka @ 2005-02-11 09:06 UTC (permalink / raw)
To: Xavier Poinsard <xpoinsard@free.fr>; +Cc: 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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Patch adding name for NotImplemented
@ 2005-02-11 09:34 Xavier Poinsard <xpoinsard@free.fr>
parent: Kris Jurka <books@ejurka.com>
1 sibling, 0 replies; 5+ messages in thread
From: Xavier Poinsard @ 2005-02-11 09:34 UTC (permalink / raw)
To: Kris Jurka <books@ejurka.com>; +Cc: 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@postgresql.org so that your
> message can get through to the mailing list cleanly
>
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Patch adding name for NotImplemented
@ 2005-02-14 09:55 Xavier Poinsard <xpoinsard@free.fr>
parent: Kris Jurka <books@ejurka.com>
1 sibling, 1 reply; 5+ messages in thread
From: Xavier Poinsard @ 2005-02-14 09:55 UTC (permalink / raw)
To: Kris Jurka <books@ejurka.com>; +Cc: 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.
Attachments:
patchNotImplemented2.txt.gz (application/x-gzip, 4.0K) download
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Patch adding name for NotImplemented
@ 2005-02-15 08:59 Kris Jurka <books@ejurka.com>
parent: Xavier Poinsard <xpoinsard@free.fr>
0 siblings, 0 replies; 5+ messages in thread
From: Kris Jurka @ 2005-02-15 08:59 UTC (permalink / raw)
To: Xavier Poinsard <xpoinsard@free.fr>; +Cc: 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
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2005-02-15 08:59 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-02-11 08:50 Patch adding name for NotImplemented Xavier Poinsard <xpoinsard@free.fr>
2005-02-11 09:06 ` Kris Jurka <books@ejurka.com>
2005-02-11 09:34 ` Xavier Poinsard <xpoinsard@free.fr>
2005-02-14 09:55 ` Xavier Poinsard <xpoinsard@free.fr>
2005-02-15 08:59 ` Kris Jurka <books@ejurka.com>
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