Hi!
I will very grateful for your consultation. Faced exception, tied with TemporalAccessor.
I see, that my TRANSACTIONS table generated using LocalDateTime type field for transaction_date column.
During writing the tests I wanted to set transaction_date for several transactions I interested in. But there always throw exception.
Details below:
Generated table field:
----------------------------------------------------------------
public final TableField<Record, LocalDateTime> TRANSACTION_DATE = createField(DSL.name("TRANSACTION_DATE"), SQLDataType.LOCALDATETIME(6), this, "");
----------------------------------------------------------
QUERY I want to use in tests:
----------------------------------------------------------
jooq.update(TRANSACTIONS)
.set(TRANSACTIONS.TRANSACTION_DATE, LocalDateTime.from(Instant.now()))
.where(TRANSACTIONS.ID.in(uuid("fe44ac34-df26-d847-d013-6cc71b1e8193")).execute();
---------------------------------------------------------------
Exception:
---------------------------------------------------------------
java.time.DateTimeException:
Unable to obtain LocalDateTime from TemporalAccessor:
2024-02-18T15:20:55.286412600Z of type java.time.Instant
Thanks in advance!