pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
name value pairs
2+ messages / 2 participants
[nested] [flat]

* name value pairs
@ 2005-11-04 05:50 Srivats <scshekaran@newbreak.com>
  2005-11-05 08:12 ` Re: name value pairs Kris Jurka <books@ejurka.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Srivats @ 2005-11-04 05:50 UTC (permalink / raw)
  To: pgsql-jdbc

Hi,

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

variable name as declared inside the function


Thks
Srivats.C 




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: name value pairs
  2005-11-04 05:50 name value pairs Srivats <scshekaran@newbreak.com>
@ 2005-11-05 08:12 ` Kris Jurka <books@ejurka.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Kris Jurka @ 2005-11-05 08:12 UTC (permalink / raw)
  To: Srivats <scshekaran@newbreak.com>; +Cc: pgsql-jdbc



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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2005-11-05 08:12 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-11-04 05:50 name value pairs Srivats <scshekaran@newbreak.com>
2005-11-05 08:12 ` 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