diff --git a/jOOQ/src/main/java/org/jooq/impl/DSL.java b/jOOQ/src/main/java/org/jooq/impl/DSL.java index 5476bbf106..ded8837188 100644 --- a/jOOQ/src/main/java/org/jooq/impl/DSL.java +++ b/jOOQ/src/main/java/org/jooq/impl/DSL.java @@ -17367,6 +17367,17 @@ public class DSL { return new CurrentTimestamp<>(TIMESTAMP.notNull()); } + /** + * Get the current_timestamp() function returning a SQL standard + * {@link SQLDataType#TIMESTAMP} type with the specified fractional + * seconds precision. + */ + @NotNull + @Support({ FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES }) + public static Field currentTimestamp(int precision) { + return currentTimestamp(Tools.field(precision)); + } + /** * Get the current_timestamp() function returning a SQL standard * {@link SQLDataType#TIMESTAMP} type with the specified fractional @@ -17439,6 +17450,28 @@ public class DSL { return new CurrentTimestamp<>(SQLDataType.LOCALDATETIME.notNull()); } + /** + * Get the current_timestamp() function returning a SQL standard + * {@link SQLDataType#TIMESTAMP} type with the specified fractional + * seconds precision. + */ + @NotNull + @Support({ FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES }) + public static Field currentLocalDateTime(int precision) { + return currentLocalDateTime(Tools.field(precision)); + } + + /** + * Get the current_timestamp() function returning a SQL standard + * {@link SQLDataType#TIMESTAMP} type with the specified fractional + * seconds precision. + */ + @NotNull + @Support({ FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES }) + public static Field currentLocalDateTime(Field precision) { + return new CurrentTimestamp<>(SQLDataType.LOCALDATETIME.notNull(), precision); + } + /** * Get the current_time() function. *