googleapis / googleapis/google-cloud-java
[java-spanner-jdbc] DatabaseMetaData returns the Cloud Spanner type names, even when used for a PostgreSQL database
未关闭
api: spanner
priority: p2
type: bug
- 主要语言
- Java
- 星标
- 2.1k
- 派生
- 1.2k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 154
描述
The `DatabaseMetaData#getTypes()` method returns the Cloud Spanner type names when it is used with a database with `PostgreSQL` dialect. This means that there is a discrepancy between the data types that the database actually supports, and what the driver reports. E.g. the driver returns type `timestamp`, which should be `timestamptz` for PostgreSQL.
The method that needs to be updated is: https://github.com/googleapis/java-spanner-jdbc/blob/9d6d3135a3e2fbc3e377f5459924ed8869498c36/src/main/java/com/google/cloud/spanner/jdbc/JdbcDatabaseMetaData.java#L920
贡献指南
评估
这个 Issue 还没有评估数据。