Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Calling PostgreSQL function with VARIADIC param from Java; how to please?

 
Samm Danielss
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! I googled extensively but could not find any samples on how to call a PostgreSQL function with VARIADIC parameter from Java.
This is a sample function I cannot seem to call from Java no matter what.
Any idea/help/link/sample greatly appreciated in advance.

Here's a sample PostgreSQL function I lifted from somewhere. It works when I call it from pgAdmin but all my attempts to call it from Java fail.

 
Knute Snortum
Sheriff
Posts: 3320
84
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post your best Java code attempt.  How does it fail?  Post any exception message and stack trace.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!