File tree 1 file changed +5
-3
lines changed
hibernate-reactive-core/src/test/java/org/hibernate/reactive/containers 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ class PostgreSQLDatabase implements TestableDatabase {
89
89
.withReuse ( true );
90
90
91
91
private String getRegularJdbcUrl () {
92
- return "jdbc:postgresql://localhost:5432/" + postgresql .getDatabaseName () + "?loggerLevel=OFF" ;
92
+ return "jdbc:postgresql://localhost:5432/" + postgresql .getDatabaseName ();
93
93
}
94
94
95
95
@ Override
@@ -117,14 +117,16 @@ private String address() {
117
117
// Calling start() will start the container (if not already started)
118
118
// It is required to call start() before obtaining the JDBC URL because it will contain a randomized port
119
119
postgresql .start ();
120
- return postgresql .getJdbcUrl ();
120
+ // Latest Postgres JDBC driver has dropped support for loggerLevel
121
+ // and the Vert.x driver throws an exception because it does not recognize it
122
+ return postgresql .getJdbcUrl ().replace ( "?loggerLevel=OFF" , "" );
121
123
}
122
124
123
125
return getRegularJdbcUrl ();
124
126
}
125
127
126
128
private static String buildJdbcUrlWithCredentials (String jdbcUrl ) {
127
- return jdbcUrl + "& user=" + postgresql .getUsername () + "&password=" + postgresql .getPassword ();
129
+ return jdbcUrl + "? user=" + postgresql .getUsername () + "&password=" + postgresql .getPassword ();
128
130
}
129
131
130
132
private static String buildUriWithCredentials (String jdbcUrl ) {
You can’t perform that action at this time.
0 commit comments