Skip to content

Commit afde5d3

Browse files
authored
JdbcDatabaseContainer: fix wrong instance call (#5465)
createConnection() method calls a wrong driver instance when logging
1 parent a9c2e9e commit afde5d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/jdbc/src/main/java/org/testcontainers/containers/JdbcDatabaseContainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public Connection createConnection(String queryString) throws SQLException, NoDr
232232
logger()
233233
.debug(
234234
"Trying to create JDBC connection using {} to {} with properties: {}",
235-
driver.getClass().getName(),
235+
jdbcDriverInstance.getClass().getName(),
236236
url,
237237
info
238238
);

0 commit comments

Comments
 (0)