CREATE OR REPLACE FUNCTION public.get_test(id_p integer)
RETURNS SETOF test
LANGUAGE plpgsql
AS $function$
BEGIN
RETURN QUERY SELECT * FROM test WHERE id = id_p;
END;
$function$
String sql = "SELECT get_test(1)";
Result<Record> result = create.fetch(sql);
System.out.println(result);
for (Record r : result) {
System.out.println(r);
}
List<TestRecord> l = result.into(TestRecord.class);
String sql = "SELECT get_test(1)";
String sql = "SELECT * FROM get_test(1)";
--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
CREATE OR REPLACE FUNCTION public.get_testarray(id_p integer)
RETURNS SETOF testarray
LANGUAGE plpgsql
AS $function$
BEGIN
RETURN QUERY SELECT * FROM testarray WHERE id = id_p;
END;
$function$
String sql = "SELECT * FROM get_testarray(?)";
Result<Record> result = create.fetch(sql, 1);
System.out.println("Result: ");
System.out.println(result);
List<TestarrayRecord> l = result.into(TestarrayRecord.class);
Update: tested with JOOQ 3.5.2, but same result.
--
I asked you once when the 3.6 release was planned, and you more or less told me that it will take many months.
I'm not just trying JOOQ but plan to use it in production, if it helps me, quite soon. That being considered, I can't plan to release a Java artifact built upon a SNAPSHOT release (maven won't love it anyway).
It that bug is fixed in 3.5.3, that should be enough for me to work.
Recurring question: when that version has a chance to be born? :)
BTW, I don't get something: you tell me that upgrading to 3.6 might help me, but you tagged the bug for the 3.6 milestone in you bug tracker. So I'm not sure of what the upgrade would bring me on that precise topic.