[jOOQ/jOOQ#8730] Fix binding of Java 8 date and time literals

In SQLite the binding of [Local|Offset][Date][Time] literals didn't
always work correctly when the value specified fractional seconds. This
was because the corresponding DSL method would return a DateOrTime
instance rather than a simple Tools#field() constructed instance. This
commit fixes that.
This commit is contained in:
Knut Wannheden 2019-06-05 08:41:55 +02:00
parent 11c5e08fc5
commit a67fbe5b79

View File

@ -15701,7 +15701,7 @@ public class DSL {
*/
@Support({ CUBRID, FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
public static Field<LocalDate> localDate(LocalDate value) {
return localDate(Tools.field(value));
return Tools.field(value);
}
/**
@ -15725,7 +15725,7 @@ public class DSL {
*/
@Support({ CUBRID, FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
public static Field<LocalTime> localTime(LocalTime value) {
return localTime(Tools.field(value));
return Tools.field(value);
}
/**
@ -15749,7 +15749,7 @@ public class DSL {
*/
@Support({ CUBRID, FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
public static Field<LocalDateTime> localDateTime(LocalDateTime value) {
return localDateTime(Tools.field(value));
return Tools.field(value);
}
/**
@ -15785,7 +15785,7 @@ public class DSL {
*/
@Support({ H2, HSQLDB, POSTGRES })
public static Field<OffsetTime> offsetTime(OffsetTime value) {
return offsetTime(Tools.field(value));
return Tools.field(value);
}
/**
@ -15827,7 +15827,7 @@ public class DSL {
*/
@Support({ H2, HSQLDB, POSTGRES })
public static Field<OffsetDateTime> offsetDateTime(OffsetDateTime value) {
return offsetDateTime(Tools.field(value));
return Tools.field(value);
}
/**
@ -15869,7 +15869,7 @@ public class DSL {
*/
@Support({ H2, HSQLDB, POSTGRES })
public static Field<Instant> instant(Instant value) {
return instant(Tools.field(value));
return Tools.field(value);
}
/**