'Convert a MySQL\'s 64 bit, variable length binary string to a long.'

def result_processor(self, dialect, coltype):

    def process(value):
        if (value is not None):
            v = 0
            for i in util.iterbytes(value):
                v = ((v << 8) | i)
            return v
        return value
    return process
