Skip to content

Commit e035569

Browse files
committed
Add support for Cassandra 4.0 to CCMBridge
1 parent 1af7382 commit e035569

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

driver-core/src/test/java/com/datastax/driver/core/CCMBridge.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,8 +799,10 @@ public ProtocolVersion getProtocolVersion() {
799799
return ProtocolVersion.V2;
800800
} else if (version.compareTo(VersionNumber.parse("2.2")) < 0) {
801801
return ProtocolVersion.V3;
802-
} else {
802+
} else if (version.compareTo(VersionNumber.parse("4.0")) < 0) {
803803
return ProtocolVersion.V4;
804+
} else {
805+
return ProtocolVersion.V5;
804806
}
805807
}
806808

0 commit comments

Comments
 (0)