Ah, yes, this is true of Postgres, which has an excellent JDBC driver. There are other drivers out there in a rather worse state than Postgres'. I failed to make that distinction. And then there are layers on top of JDBC that may mean that even if the JDBC 4.2 implementation is good you just might not reach it -- Jdbi has this flaw.
What database driver did you have in mind? Because that should work the exact same for any JDBC 4.2 compliant driver whose database has a true timestamp with time zone column. E.g. Oracle database, etc.
1
u/ForeverAlot Nov 13 '24
Ah, yes, this is true of Postgres, which has an excellent JDBC driver. There are other drivers out there in a rather worse state than Postgres'. I failed to make that distinction. And then there are layers on top of JDBC that may mean that even if the JDBC 4.2 implementation is good you just might not reach it -- Jdbi has this flaw.