This repository was archived by the owner on Mar 26, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
src/main/java/com/google/cloud/spanner/jdbc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ class JdbcDatabaseMetaData extends AbstractJdbcWrapper implements DatabaseMetaDa
4848 private static final int DATABASE_MAJOR_VERSION = 1 ;
4949 private static final int DATABASE_MINOR_VERSION = 0 ;
5050 private static final String PRODUCT_NAME = "Google Cloud Spanner" ;
51+ private static final String POSTGRESQL_PRODUCT_NAME = PRODUCT_NAME + " PostgreSQL" ;
5152
5253 @ VisibleForTesting
5354 static String readSqlFromFile (String filename , Dialect dialect ) {
@@ -137,7 +138,7 @@ public boolean nullsAreSortedAtEnd() {
137138
138139 @ Override
139140 public String getDatabaseProductName () {
140- return PRODUCT_NAME ;
141+ return connection . getDialect () == Dialect . POSTGRESQL ? POSTGRESQL_PRODUCT_NAME : PRODUCT_NAME ;
141142 }
142143
143144 @ Override
You can’t perform that action at this time.
0 commit comments