googleapis / googleapis/google-cloud-java

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

Abierto
#12,282 0 comentarios 0 reacciones 1 asignado Asignado a @olavloite Ver en GitHub
api: spanner priority: p2 type: bug
Lenguaje dominante
Java
Estrellas
2.1k
Forks
1.2k
Merge medio
1 d 23 h
PR fusionados (30 d)
154

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.