def close(self):
try:<EOL><INDENT>if self.connection is None:<EOL><INDENT>return<EOL><DEDENT>while self.nextset():<EOL><INDENT>pass<EOL><DEDENT><DEDENT>finally:<EOL><INDENT>self.connection = None<EOL>self._result = None<EOL><DEDENT>
Close the cursor. No further queries will be possible.