mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-16 03:50:43 +08:00
Argh
This commit is contained in:
@ -149,7 +149,7 @@ def escape_dict(d, qc):
|
|||||||
def _fetchall(result, *args):
|
def _fetchall(result, *args):
|
||||||
rows = r = list(apply(result.fetch_row, args))
|
rows = r = list(apply(result.fetch_row, args))
|
||||||
while 1:
|
while 1:
|
||||||
rows = apply(result.fetch_row, args))
|
rows = apply(result.fetch_row, args)
|
||||||
if not rows: break
|
if not rows: break
|
||||||
r.extend(list(rows))
|
r.extend(list(rows))
|
||||||
return r
|
return r
|
||||||
@ -266,7 +266,7 @@ class CursorWarningMixIn:
|
|||||||
if self._info:
|
if self._info:
|
||||||
warnings = atoi(split(self._info)[-1])
|
warnings = atoi(split(self._info)[-1])
|
||||||
if warnings:
|
if warnings:
|
||||||
raise Warning, self.info
|
raise Warning, self._info
|
||||||
|
|
||||||
|
|
||||||
class CursorStoreResultMixIn:
|
class CursorStoreResultMixIn:
|
||||||
|
Reference in New Issue
Block a user