DatabaseMetaData returns the Cloud Spanner type names, even when used for a PostgreSQL database #925
Labels
api: spanner
Issues related to the googleapis/java-spanner-jdbc API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
The
DatabaseMetaData#getTypes()
method returns the Cloud Spanner type names when it is used with a database withPostgreSQL
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 typetimestamp
, which should betimestamptz
for PostgreSQL.The method that needs to be updated is:
java-spanner-jdbc/src/main/java/com/google/cloud/spanner/jdbc/JdbcDatabaseMetaData.java
Line 920 in 9d6d313
The text was updated successfully, but these errors were encountered: