File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
driver/src/main/java/org/neo4j/driver Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,11 @@ public Builder withDatabase( String database )
229
229
// Disallow users to use bolt internal value directly. To users, this is totally an illegal database name.
230
230
throw new IllegalArgumentException ( String .format ( "Illegal database name '%s'." , database ) );
231
231
}
232
- this .database = database ;
232
+ // The database name is normalized to lowercase on the server side.
233
+ // The client in theory shall not perform any normalization at all.
234
+ // However as this name is also used in routing table registry as the map's key to find the routing table for the given database,
235
+ // to avoid multiple routing tables for the same database, we perform a client side normalization.
236
+ this .database = database .toLowerCase ();
233
237
return this ;
234
238
}
235
239
You can’t perform that action at this time.
0 commit comments