googleapis / googleapis/google-cloud-java

[java-spanner-jdbc] DatabaseMetaData returns the Cloud Spanner type names, even when used for a PostgreSQL database

Ouverte
#12,282 0 commentaires 0 réactions 1 personne assignée Assignée à @olavloite Voir sur GitHub
api: spanner priority: p2 type: bug
Langage dominant
Java
Étoiles
2.1k
Forks
1.2k
Merge moyen
1 j 23 h
PR mergées (30 j)
154

Description

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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.