Skip to content

Commit 8289de0

Browse files
committed
Ensure we can connect to a Cassandra node version > 3
1 parent b862c2a commit 8289de0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cassandra/metadata.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2487,7 +2487,8 @@ def export_as_string(self):
24872487

24882488

24892489
def get_schema_parser(connection, server_version, timeout):
2490-
if server_version.startswith('3'):
2490+
server_major_version = int(server_version.split('.')[0])
2491+
if server_major_version >= 3:
24912492
return SchemaParserV3(connection, timeout)
24922493
else:
24932494
# we could further specialize by version. Right now just refactoring the

0 commit comments

Comments
 (0)