You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't one already, a PR to fix or at least reproduce the problem in a test case will always help us get back on track to tackle this.
This issue has been automatically closed due to inactivity. We apologise if this is still an active problem for you, and would ask you to re-open the issue if this is the case.
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.testcontainers-java/modules/postgresql/src/main/java/org/testcontainers/containers/PostgreSQLContainer.java
Line 62 in 2e9adb9
When the URL is being constructed on the bellow line, the
queryString
already has a?
with the query arguments.testcontainers-java/modules/jdbc/src/main/java/org/testcontainers/containers/JdbcDatabaseContainer.java
Line 189 in 2e9adb9
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 theloggerLevel
from the URL.Thanks in advance,
Bruno
The text was updated successfully, but these errors were encountered: