Open getArtemUsername opened 4 years ago
Thanks for the report, we may be able to fix this in the Meta
definition for OffsetDateTime
.
IIRC, If you use TIMESTAMP
instead of TIMESTAMP_WITH_TIMEZONE
, the driver won't find OffsetDateTime-specific code - https://github.com/pgjdbc/pgjdbc/blob/master/pgjdbc/src/main/java/org/postgresql/jdbc/PgPreparedStatement.java#L622
TIMESTAMP (timestamptz)
Also, this is odd, timestamptz
is timestamp with timezone...
I had the same problem and I created the following as a local solution:
TypeInfoCache.java.patch
is the hacky little changepatch-postgres.sh
is a script that you can use to keep the hack in sync as you update the postgres jar (customise the tgt
and ver
assignments for your own project setup)Actually sorry credit where credit is due: @triggerNZ came up with the hack a year ago, I just revised it and created the automation around it.
Hi! I've got some query checking issue with postgresql.
The table ddl is
Code:
Looks like it does not like jdbc type
TimestampWithTimezone
in meta definition but withTimestamp
(I tried custom meta) all works fine.