Skip to content

[BugFix] Fix PostgreSQL JDBC URL missing database name (#5129) - #5472

Open
zhang-arvin wants to merge 1 commit into
apache:masterfrom
zhang-arvin:fix/5129-postgresql-jdbc-url
Open

[BugFix] Fix PostgreSQL JDBC URL missing database name (#5129)#5472
zhang-arvin wants to merge 1 commit into
apache:masterfrom
zhang-arvin:fix/5129-postgresql-jdbc-url

Conversation

@zhang-arvin

Copy link
Copy Markdown

Closes #5129

…tion failure (apache#5129)

When both 'instance' and 'dbName' parameters are blank, the PostgreSQL JDBC URL
was built without a database name, causing the PostgreSQL driver to fail with
'JDBC URL must contain a / at the end of the host or port' error.

This fix adds a default 'postgres' database name when no database is specified,
ensuring the JDBC URL is always valid for PostgreSQL connections.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] postgresql jdbc url create connection SQLException

1 participant