This commit is contained in:
INADA Naoki
2015-11-05 03:38:13 +09:00
parent b07937487d
commit 98bec5fb8c
5 changed files with 238 additions and 237 deletions

View File

@ -111,7 +111,7 @@ class BaseCursor(object):
if self._warnings:
# When there is next result, fetching warnings cause "command
# out of sync" error.
if self._result.has_next:
if self._result and self._result.has_next:
msg = "There are %d MySQL warnings." % (self._warnings,)
self.messages.append(msg)
warn(msg, self.Warning, 3)