Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DatabaseMetadata.getTypeInfo() does not report the correct JDBC type for timestamptz and timetz #3186

Open
prrvchr opened this issue Mar 30, 2024 · 2 comments

Comments

@prrvchr
Copy link

prrvchr commented Mar 30, 2024

Hi,

I use postgresql 42.7.1 JDBC driver.
If we look at the DATA_TYPE column returned for timetz and timestamptz by the getTypeInfo() method of DatabaseMetaData we get 92 and 93 instead of 2013 and 2014 respectively.
In addition, the name of these two types does not seem to correspond to those necessary when declaring the type of a column (ie: time with time zone and timestamp with time zone respectively).
What justifies it being like this?

@davecramer
Copy link
Member

duplicate of #1766, this is a well known issue, please search the history for the reasons.
We do have a PR to fix. It needs to get merged in

@prrvchr
Copy link
Author

prrvchr commented Mar 31, 2024

We do have a PR to fix. It needs to get merged in

Great, I'll wait for that...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants