diff --git a/jOOQ-test/src/test/java/org/jooq/test/postgres/generatedclasses/Routines.java b/jOOQ-test/src/test/java/org/jooq/test/postgres/generatedclasses/Routines.java
index 56bba06786..4372c90d97 100644
--- a/jOOQ-test/src/test/java/org/jooq/test/postgres/generatedclasses/Routines.java
+++ b/jOOQ-test/src/test/java/org/jooq/test/postgres/generatedclasses/Routines.java
@@ -463,6 +463,26 @@ public class Routines {
return p;
}
+ /**
+ * Get public.second_max as a field
+ */
+ public static org.jooq.AggregateFunction secondMax(java.lang.Integer __1) {
+ org.jooq.test.postgres.generatedclasses.routines.SecondMax f = new org.jooq.test.postgres.generatedclasses.routines.SecondMax();
+ f.set__1(__1);
+
+ return f.asAggregateFunction();
+ }
+
+ /**
+ * Get public.second_max as a field
+ */
+ public static org.jooq.AggregateFunction secondMax(org.jooq.Field __1) {
+ org.jooq.test.postgres.generatedclasses.routines.SecondMax f = new org.jooq.test.postgres.generatedclasses.routines.SecondMax();
+ f.set__1(__1);
+
+ return f.asAggregateFunction();
+ }
+
/**
* Get public.f_search_book as a field
*/
diff --git a/jOOQ-test/src/test/java/org/jooq/test/postgres/generatedclasses/routines/SecondMax.java b/jOOQ-test/src/test/java/org/jooq/test/postgres/generatedclasses/routines/SecondMax.java
new file mode 100644
index 0000000000..fd3d1bb68b
--- /dev/null
+++ b/jOOQ-test/src/test/java/org/jooq/test/postgres/generatedclasses/routines/SecondMax.java
@@ -0,0 +1,48 @@
+/**
+ * This class is generated by jOOQ
+ */
+package org.jooq.test.postgres.generatedclasses.routines;
+
+/**
+ * This class is generated by jOOQ.
+ */
+@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class SecondMax extends org.jooq.impl.AbstractRoutine {
+
+ private static final long serialVersionUID = 575408053;
+
+ /**
+ * The parameter public.second_max.RETURN_VALUE.
+ */
+ public static final org.jooq.Parameter RETURN_VALUE = createParameter("RETURN_VALUE", org.jooq.impl.SQLDataType.INTEGER);
+
+ /**
+ * The parameter public.second_max._1.
+ */
+ public static final org.jooq.Parameter _1 = createParameter("_1", org.jooq.impl.SQLDataType.INTEGER);
+
+ /**
+ * Create a new routine call instance
+ */
+ public SecondMax() {
+ super("second_max", org.jooq.test.postgres.generatedclasses.Public.PUBLIC, org.jooq.impl.SQLDataType.INTEGER);
+
+ setReturnParameter(RETURN_VALUE);
+ addInParameter(_1);
+ }
+
+ /**
+ * Set the _1 parameter IN value to the routine
+ */
+ public void set__1(java.lang.Integer value) {
+ setValue(org.jooq.test.postgres.generatedclasses.routines.SecondMax._1, value);
+ }
+
+ /**
+ * Set the _1 parameter to the function to be used with a {@link org.jooq.Select} statement
+ */
+ public SecondMax set__1(org.jooq.Field field) {
+ setField(_1, field);
+ return this;
+ }
+}