This commit is contained in:
adustman
2000-08-16 19:29:58 +00:00
parent 4f8e1183f2
commit 961e135324

View File

@ -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: