pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Srivats <scshekaran@newbreak.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: name value pairs
Date: Sat, 5 Nov 2005 03:12:44 -0500 (EST)
Message-ID: <Pine.BSO.4.61.0511050308460.25112@leary.csoft.net> (raw)
In-Reply-To: <01e201c5e103$ab00b930$851e010a@NBINDIAXP0133>
References: <43697664.2060500@ev.net>
	<01e201c5e103$ab00b930$851e010a@NBINDIAXP0133>



On Fri, 4 Nov 2005, Srivats wrote:

> Can I call the functions with name value pairs from JAVA like i do in Sybase.
> For Example
> function name ( variable name = value, ..... );

The CallableStatement interface provides setXXX methods that take a String 
argument for the parameter name in addition to the integer offset setXXX 
methods.  Unfortunately the postgresql jdbc driver currently does not 
implement these methods.

It would be possible to implement this method by parsing the statement and 
then querying the system catalog to get the function parameters' names. 
This wouldn't work for overloaded functions which need additional type 
information to resolve, but I don't think that's the general case.

Kris Jurka



view thread (2+ messages)

Message-ID: <Pine.BSO.4.61.0511050308460.25112@leary.csoft.net>
Permalink:  ../Pine.BSO.4.61.0511050308460.25112@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.61.0511050308460.25112@leary.csoft.net

 · 

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: books@ejurka.com, scshekaran@newbreak.com
  Subject: Re: name value pairs
  In-Reply-To: <Pine.BSO.4.61.0511050308460.25112@leary.csoft.net>
  References: <43697664.2060500@ev.net> <01e201c5e103$ab00b930$851e010a@NBINDIAXP0133> <Pine.BSO.4.61.0511050308460.25112@leary.csoft.net>

* 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