pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Xavier Poinsard <xpoinsard@free.fr>
To: pgsql-jdbc@postgresql.org
Subject: Re: Patch for jdbc escaped functions
Date: Wed, 08 Dec 2004 10:53:56 +0100
Message-ID: <41B6CF34.6050904@free.fr> (raw)
In-Reply-To: <Pine.BSO.4.56.0412060803570.3258@leary.csoft.net>
References: <1102068352.41b03a8098c80@imp6-q.free.fr>
	<Pine.BSO.4.56.0412060803570.3258@leary.csoft.net>

Kris Jurka wrote:
>>- soundex and difference (based on phonetics and I saw nothing like that
>>in PostgreSql)
> contrib/fuzzystrmatch has something along these lines.  We can't assume 
> that's installed naturally and dynamically checking for it seems 
> excessive, but perhaps we could put in the mapping if someone wants to use 
> it, but just not report it in the DatabaseMetaData function?

done.

> This is a serious problem.  Duplicating the argument and erroring out is 
> bad, and switching argument order and giving incorrect results is worse.  
> How many functions does this affect.  Remapping could be done, but it 
> seems like a lot of work.

since only three functions are affected : insert, locate et right
I removed them from the supported list, but left the implementation.
I will document this later.

> 
> Another issue is that this doesn't compile with a 1.2 or 1.3 JDK because 
> of the code in AbstractJdbc2Statement.escapeFunction that calls 
> Exception.getCause which is a 1.4 addition.

Fixed

> One other minor thing I noticed is that 7.2 servers do not have the 
> current_database function.  This is a very minor thing, but I'm not sure 
> what the best way to work around it is because right now the regression 
> test suite does pass against a 7.2 server and I'd like to keep it that 
> way.

I only report it as supported for >=7.3 and same for the tests.

Additionnaly I rewrote the messages to reduce translation effort.

Xavier Poinsard.

Attachments:

  escapedfunctions4.diff.gz (application/x-gzip, 7.7K) download

view thread (8+ messages)  latest in thread

Message-ID: <41B6CF34.6050904@free.fr>
Permalink:  ../41B6CF34.6050904@free.fr/
Also on:    postgresql.org/message-id/41B6CF34.6050904@free.fr

 · 

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: xpoinsard@free.fr
  Subject: Re: Patch for jdbc escaped functions
  In-Reply-To: <41B6CF34.6050904@free.fr>
  References: <1102068352.41b03a8098c80@imp6-q.free.fr> <Pine.BSO.4.56.0412060803570.3258@leary.csoft.net> <41B6CF34.6050904@free.fr>

* 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