You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chapman Flack edited this page Dec 22, 2015
·
2 revisions
Returning complex types
The SQL-2003 draft suggest that a complex return value is handled as an IN/OUT
parameter and PL/Java implements it that way. If you declare a function that
returns a complex type, you will need to use a Java method with boolean return
type with a last parameter of type java.sql.ResultSet added after all of
the method's visible parameters. The output parameter
will be initialized to an updatable ResultSet that contains exactly one row.
CREATEFUNCTIONcreateComplexTest(int, int)
RETURNS complexTest
AS'foo.fee.Fum.createComplexTest'
IMMUTABLE LANGUAGE java;
The PL/Java method resolver will now find the following method in class foo.fee.Fum: