Skip to content

Commit

Permalink
Update mysql jdbc driver version to keep with db version
Browse files Browse the repository at this point in the history
  • Loading branch information
strongduanmu committed Mar 3, 2022
1 parent a4759e1 commit 9f08dfe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jmh-shardingsphere5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
<name>JMH benchmark: ShardingSphere 5</name>

<properties>
<shardingsphere.version>5.0.1-SNAPSHOT</shardingsphere.version>
<shardingsphere.version>5.1.1-SNAPSHOT</shardingsphere.version>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package icu.wwj.jmh.shardingsphere5.code;

import org.apache.shardingsphere.infra.datanode.DataNodeInfo;
import org.apache.shardingsphere.sharding.algorithm.sharding.mod.ModShardingAlgorithm;
import org.apache.shardingsphere.sharding.api.sharding.standard.PreciseShardingValue;
import org.openjdk.jmh.annotations.Benchmark;
Expand Down Expand Up @@ -47,7 +48,8 @@ public void setup() {

@Benchmark
public String benchModShardingAlgorithm() {
return algorithm.doSharding(availableTargets, new PreciseShardingValue<>("", "", random.nextLong(Long.MAX_VALUE)));
DataNodeInfo dataNodeInfo = new DataNodeInfo("ds_", 1, '0');
return algorithm.doSharding(availableTargets, new PreciseShardingValue<>("", "", dataNodeInfo, random.nextLong(Long.MAX_VALUE)));
}

public static void main(String[] args) throws RunnerException {
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.27</version>
<version>5.1.47</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
Expand Down

0 comments on commit 9f08dfe

Please sign in to comment.