Updated Branches: refs/heads/cassandra-1.2 40f0bdce0 -> 56c9d2ff2
cqlsh: make C* version handling more flexible Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/56c9d2ff Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/56c9d2ff Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/56c9d2ff Branch: refs/heads/cassandra-1.2 Commit: 56c9d2ff266a8ca94f0f399dc86149ccc99ddd07 Parents: 40f0bdc Author: Aleksey Yeschenko <alek...@apache.org> Authored: Wed Jul 3 00:12:34 2013 +0300 Committer: Aleksey Yeschenko <alek...@apache.org> Committed: Wed Jul 3 00:12:34 2013 +0300 ---------------------------------------------------------------------- bin/cqlsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/56c9d2ff/bin/cqlsh ---------------------------------------------------------------------- diff --git a/bin/cqlsh b/bin/cqlsh index 9f1e6cf..999d1d1 100755 --- a/bin/cqlsh +++ b/bin/cqlsh @@ -635,7 +635,7 @@ class Shell(cmd.Cmd): 'cql': result['cql_version'], } self.connection_versions = vers - self.cass_ver_tuple = tuple(map(int, vers['build'].split('-', 1)[0].split('.', 2))) + self.cass_ver_tuple = tuple(map(int, vers['build'].split('-', 1)[0].split('.')[:3])) def get_connection_versions_fallback(self): if self.cqlver_atleast(3):