This commit is contained in:
adustman
2001-02-09 16:56:20 +00:00
parent d480ad766a
commit 0d2838f5a4
2 changed files with 4 additions and 2 deletions

View File

@ -248,7 +248,9 @@ class BaseCursor:
def nextset(self): return None def nextset(self): return None
def _fetch_row(self): return self._result.fetch_row(1, self._fetch_type)[0] def _fetch_row(self):
r = self._result.fetch_row(1, self._fetch_type)
return r and r[0] or ()
def _fetch_rows(self, size): def _fetch_rows(self, size):
return self._result.fetch_row(size, self._fetch_type) return self._result.fetch_row(size, self._fetch_type)

View File

@ -69,7 +69,7 @@ derived from the Python license.
setup (# Distribution meta-data setup (# Distribution meta-data
name = "MySQL-python", name = "MySQL-python",
version = "0.3.2", version = "0.3.3",
description = "An interface to MySQL", description = "An interface to MySQL",
long_description=long_description, long_description=long_description,
author = "Andy Dustman", author = "Andy Dustman",