diff --git a/jOOQ/src/main/java/org/jooq/impl/DSL.java b/jOOQ/src/main/java/org/jooq/impl/DSL.java index 617c5c31b4..10a5cf70ec 100644 --- a/jOOQ/src/main/java/org/jooq/impl/DSL.java +++ b/jOOQ/src/main/java/org/jooq/impl/DSL.java @@ -11446,6 +11446,17 @@ public class DSL { return new Val(null, type); } + /** + * Create an unnamed parameter with the defined type of another field and no + * initial value. + * + * @see #param(String, Object) + */ + @Support + public static Param param(Field field) { + return param(field.getDataType()); + } + /** * Create a named parameter with a generic type ({@link Object} / * {@link SQLDataType#OTHER}) and no initial value. @@ -11490,6 +11501,17 @@ public class DSL { return new Val(null, type, name); } + /** + * Create a named parameter with a defined type of another field and no + * initial value. + * + * @see #param(String, Object) + */ + @Support + public static Param param(String name, Field type) { + return param(name, type.getDataType()); + } + /** * Create a named parameter with an initial value. *