Explorar o código

Merge pull request #573 from robmccoll/master

DSE reports >3 elements in the version string
Chris Bannister %!s(int64=10) %!d(string=hai) anos
pai
achega
7bc4345373
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      host_source.go

+ 1 - 1
host_source.go

@@ -32,7 +32,7 @@ type cassVersion struct {
 func (c *cassVersion) UnmarshalCQL(info TypeInfo, data []byte) error {
 	version := strings.TrimSuffix(string(data), "-SNAPSHOT")
 	v := strings.Split(version, ".")
-	if len(v) != 3 {
+	if len(v) < 3 {
 		return fmt.Errorf("invalid schema_version: %v", string(data))
 	}