You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to https://jdbc.postgresql.org/documentation/head/java8-date-time.html, ZonedDateTime, Instant and OffsetTime are not supported by JDBC. Some databases will likely support these types if we bypass the JDBC driver (everything else is platform specific, why not executor as well :D) . A couple of options:
have some reasonable defaults e.g. Use an instant stored as an integer type or timestamp at UTC, zoned date time might use a timestamp which is always UTC
remove these types from the default type tags and implement them separately as platform specific extensions
allow users to define how they'd like them stored using a typeclass or something?
do something crazy like having two columns (with one to store tz information) accessed as if it's one by zio-sql (I don't think this is a good idea...)
1 and 2 would require good documentation and consistent handling across the types. 3 & 4 are probably unideal...
bertlebee
changed the title
decide on handling of unsupported data types in JDBC (ZonedDateTime, Instant and OffsetTime)
decide on handling of unsupported data types in JDBC (ZonedDateTime, Instant and OffsetTime), UUID in MySQL
Nov 25, 2020
According to https://jdbc.postgresql.org/documentation/head/java8-date-time.html, ZonedDateTime, Instant and OffsetTime are not supported by JDBC. Some databases will likely support these types if we bypass the JDBC driver (everything else is platform specific, why not executor as well :D) . A couple of options:
1 and 2 would require good documentation and consistent handling across the types. 3 & 4 are probably unideal...
@jczuchnowski / @jdegoes any thoughts on this?
The text was updated successfully, but these errors were encountered: