diff --git a/src/pytds/__init__.py b/src/pytds/__init__.py
index <HASH>..<HASH> 100644
--- a/src/pytds/__init__.py
+++ b/src/pytds/__init__.py
@@ -47,8 +47,8 @@ __version__ = pkg_resources.get_distribution('python-tds').version
 
 
 def _ver_to_int(ver):
-    maj, minor, rev = ver.split('.')
-    return (int(maj) << 24) + (int(minor) << 16) + (int(rev) << 8)
+    maj, minor, _ = ver.split('.')
+    return (int(maj) << 24) + (int(minor) << 16)
 
 
 intversion = _ver_to_int(__version__)
Change to send only major and minor parts of version to server

Third component can contain git hash, which cannot be converted to integer properly