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

How to get function return value

Piotr Sobolewski
Posts: 3
Mac Netbeans IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All!
It is my first post so if I am doing sth wrong please tell me.
I have a problem with value which is returned from postgresql function.
Probably java code is a problem but I will be very happy for yours help.

This is a sample function:

I expect that the function returns -3

When i use java code:

It always returns 0;
What is wrong?
I would be grateful for your help.

Best Regards!
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!