This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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: 3603
86
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!