mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 02:54:29 +08:00
fixup
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user