Skip to content

DatabaseMetaData returns the Cloud Spanner type names, even when used for a PostgreSQL database #925

@olavloite

Description

@olavloite

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:

Metadata

Metadata

Assignees

Labels

api: spannerIssues related to the googleapis/java-spanner-jdbc API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions