-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: 9, 10, 11, 12, 13
-
Component/s: core-libs
-
b03
Code example in top-level specification https://docs.oracle.com/en/java/javase/12/docs/api/java.sql/java/sql/ConnectionBuilder.html
has the following:
================
Connection con = ds.createConnectionBuilder()
.user("rafa")
.password("tennis")
.setShardingKey(shardingKey)
.setSuperShardingKey(superShardingKey)
.build();
================
while the actual ConnectionBuilder API contains methods called just "shardingKey​(ShardingKey)" and "superShardingKey​(ShardingKey)"
This mismatch is present since the addition of ConnectionBuilder class - https://docs.oracle.com/javase/9/docs/api/java/sql/ConnectionBuilder.html
has the following:
================
Connection con = ds.createConnectionBuilder()
.user("rafa")
.password("tennis")
.setShardingKey(shardingKey)
.setSuperShardingKey(superShardingKey)
.build();
================
while the actual ConnectionBuilder API contains methods called just "shardingKey​(ShardingKey)" and "superShardingKey​(ShardingKey)"
This mismatch is present since the addition of ConnectionBuilder class - https://docs.oracle.com/javase/9/docs/api/java/sql/ConnectionBuilder.html