def METHOD_NAME(self, connection):
    # NOTE: this function is not reliable, particularly when
    # freetds is in use.   Implement database-specific server version
    # queries.
    dbapi_con = connection.connection
    version = []
    r = re.compile(r'[.\-]')
    for n in r.split(dbapi_con.getinfo(self.dbapi.SQL_DBMS_VER)):
        try:
            version.append(int(n))
        except ValueError:
            version.append(n)
    return tuple(version)