def nextset(self):
if self._executed:<EOL><INDENT>self.fetchall()<EOL><DEDENT>del self.messages[:]<EOL>db = self._get_db()<EOL>nr = db.next_result()<EOL>if nr == -<NUM_LIT:1>:<EOL><INDENT>return None<EOL><DEDENT>self._do_get_result()<EOL>self._post_get_result()<EOL>self._warning_check()<EOL>return <NUM_LIT:1><EOL>
Advance to the next result set.

        Returns None if there are no more result sets.