Attaching derby-4092-01-aa-noVTIsAsScalarValues.diff. This patch raises an error during the binding of scalar Java return values if a java.sql.ResultSet is seen.
I have not run regression tests yet although TableFunctionTest runs cleanly with the new test case.
Touches the following files:
Raise an error during bind() if a scalar value sits on top of a call to a table function.
A new message for this error state.
A test case to verify this fix.