Unix Technical Forum

Re: Patch adding name for NotImplemented

This is a discussion on Re: Patch adding name for NotImplemented within the pgsql Interfaces jdbc forums, part of the PostgreSQL category; --> On Fri, 11 Feb 2005, Xavier Poinsard wrote: > I had some time in the train, so here is ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces jdbc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-15-2008, 11:03 PM
Kris Jurka
 
Posts: n/a
Default Re: Patch adding name for NotImplemented



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

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-15-2008, 11:04 PM
Xavier Poinsard
 
Posts: n/a
Default Re: Patch adding name for NotImplemented

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
>



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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-15-2008, 11:04 PM
Kris Jurka
 
Posts: n/a
Default Re: Patch adding name for NotImplemented



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

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:17 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com