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
@Message(id = 19, value = "Cannot specify URL using the JDBC syntax. Check the Hibernate Reactive or Vert.x SQL client documentation for more details." +
68
+
" Invalid URL: %s")
69
+
HibernateExceptioninvalidJdbcUrl(Stringurl);
70
+
67
71
@LogMessage(level = WARN)
68
72
@Message(id = 21, value = "DDL command failed [%1$s]")
69
73
voidddlCommandFailed(Stringmessage);
@@ -253,5 +257,4 @@ public interface Log extends BasicLogger {
253
257
@LogMessage(level = WARN)
254
258
@Message(id = 447, value= "Explicit use of UPGRADE_SKIPLOCKED in lock() calls is not recommended; use normal UPGRADE locking instead")
thrownewHibernateError( "The configuration property '" + Settings.URL + "' was not provided, or is in invalid format. This is required when using the default DefaultSqlClientPool: " +
246
245
"either provide the configuration setting or integrate with a different SqlClientPool implementation" );
Copy file name to clipboardExpand all lines: hibernate-reactive-core/src/main/java/org/hibernate/reactive/pool/impl/DefaultSqlClientPoolConfiguration.java
if ( connectOptions.getUser() == null && user == null ) {
95
+
thrownewIllegalArgumentException( "database username not specified (set the property 'hibernate.connection.username', or include it as a parameter in the connection URL)" );
106
96
}
107
97
108
-
Stringhost = scheme.equals( "oracle" )
109
-
? oracleHost( uri )
110
-
: uri.getHost();
111
-
112
-
intport = scheme.equals( "oracle" )
113
-
? oraclePort( uri )
114
-
: uri.getPort();
115
-
116
-
intindex = uri.toString().indexOf( ';' );
117
-
if ( scheme.equals( "sqlserver" ) && index > 0 ) {
118
-
// SQL Server separates parameters in the url with a semicolon (';')
119
-
// and the URI class doesn't get the right value for host and port when the url
120
-
// contains parameters
121
-
URIuriWithoutParams = URI.create( uri.toString().substring( 0, index ) );
122
-
host = uriWithoutParams.getHost();
123
-
port = uriWithoutParams.getPort();
98
+
if ( user != null ) {
99
+
connectOptions.setUser( user );
124
100
}
125
101
126
-
if ( port == -1 ) {
127
-
port = defaultPort( scheme );
128
-
}
129
-
130
-
//see if the credentials were specified via properties
0 commit comments