[#4193] Wrong H2 routines generated since recent H2 version

This commit is contained in:
lukaseder 2015-04-11 17:11:52 +02:00
parent 10a3485e0a
commit 8445b56556

View File

@ -97,6 +97,10 @@ public class H2RoutineDefinition extends AbstractRoutineDefinition {
.from(FUNCTION_COLUMNS)
.where(FunctionColumns.ALIAS_SCHEMA.equal(getSchema().getName()))
.and(FunctionColumns.ALIAS_NAME.equal(getName()))
// [#4193] recent versions of H2 produce a row for the function
// return value at position 0
.and(FunctionColumns.POS.gt(0))
.orderBy(FunctionColumns.POS.asc()).fetch()) {
String paramName = record.getValue(FunctionColumns.COLUMN_NAME);