#714 Calling scalar function does not set return value.

v1.3
open
nobody
None
1
2013-08-23
2013-08-23
Sunil Kamath
No

Calling a scalar function using jTDS does not set the return value.
It fails with the error:

Exception in thread "main" java.sql.SQLException: Output parameters have not yet been processed. Call getMoreResults().
at net.sourceforge.jtds.jdbc.ParamInfo.getOutValue(ParamInfo.java:159)
at net.sourceforge.jtds.jdbc.JtdsCallableStatement.getOutputValue(JtdsCallableStatement.java:124)
at net.sourceforge.jtds.jdbc.JtdsCallableStatement.getString(JtdsCallableStatement.java:334)
at dummy.JtdsFunctionCallTest.main(JtdsFunctionCallTest.java:27)

See attached sample to reproduce the bug.

1 Attachments

Discussion