diff --git a/mysql/MySQLdb.py b/mysql/MySQLdb.py index a631630..f41f5d4 100644 --- a/mysql/MySQLdb.py +++ b/mysql/MySQLdb.py @@ -248,7 +248,9 @@ class BaseCursor: 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): return self._result.fetch_row(size, self._fetch_type) diff --git a/mysql/setup.py b/mysql/setup.py index bbde487..e5316ee 100644 --- a/mysql/setup.py +++ b/mysql/setup.py @@ -69,7 +69,7 @@ derived from the Python license. setup (# Distribution meta-data name = "MySQL-python", - version = "0.3.2", + version = "0.3.3", description = "An interface to MySQL", long_description=long_description, author = "Andy Dustman",