def close(self):
        if not self.connection:
            return
        try:
            while self.nextset():
                pass
        except:
            pass

        self.connection = None
Closing a cursor just exhausts all remaining data.
dataset/ETHPy150Open uwdata/termite-data-server/web2py/gluon/contrib/pymysql/cursors.py/Cursor.close