I just tried to call a stored function from the server (getStat), that is looking like this:
create type stat as (type text, location text, number int);
create f
No need to use a CallableStatement with the {call ...}
syntax.
Just use a select and a regular Statement
:
Statement stmt = connection.createStatement();
ResultSet rs = stmt.executeQuery("select * from getStat()");
while (rs.next())
{
System.out.println(rs.getString(1));
System.out.println(rs.getString(2));
System.out.println(rs.getInt(3));
}