Mercurial > p > mysql-python > mysqldb-2
changeset 70:29b4cfd9af07 MySQLdb
show_warnings was renamed show_warnings (bug 2796727)
author | kylev |
---|---|
date | Fri, 24 Jul 2009 00:35:20 +0000 |
parents | 18e5892a5aed |
children | f06381a47ab0 |
files | MySQLdb/cursors.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/MySQLdb/cursors.py Fri Jul 24 00:27:38 2009 +0000 +++ b/MySQLdb/cursors.py Fri Jul 24 00:35:20 2009 +0000 @@ -87,7 +87,7 @@ """Check for warnings, and report via the warnings module.""" from warnings import warn if self._warnings: - warnings = self._get_db().show_warnings() + warnings = self._get_db()._show_warnings() if warnings: # This is done in two loops in case # Warnings are set to raise exceptions. @@ -107,7 +107,7 @@ if self._executed: self.fetchall() del self.messages[:] - + connection = self._get_db() num_rows = connection.next_result() if num_rows == -1: