Skip to content

Unable to pass arguments to delegate PostgreSQL JDBC Driver #2339

@brunopalos

Description

@brunopalos

Hi,

Due to ?loggerLevel=OFF at the end of the constructed URL on PostgresSQL module, is not possible to pass arguments to the underlying driver, causing the connection to hang.

return "jdbc:postgresql://" + getContainerIpAddress() + ":" + getMappedPort(POSTGRESQL_PORT) + "/" + databaseName + "?loggerLevel=OFF";

When the URL is being constructed on the bellow line, the queryString already has a ? with the query arguments.

final String url = constructUrlForConnection(queryString);

Example: jdbc:postgresql://localhost:5432/my_database??loggerLevel=OFF?currentSchema=my_schema.

Removing ?loggerLevel=OFF doesn't seem to have any effect on the logs. If you agree, I'm happy to create a PR and remove the loggerLevel from the URL.

Thanks in advance,
Bruno

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions