MCPcopy Index your code
hub / github.com/davispuh/MySQL-for-Python-3 / _warning_check

Method _warning_check

MySQLdb/cursors.py:100–113  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

98 self.errorhandler(self, ProgrammingError, "execute() first")
99
100 def _warning_check(self):
101 from warnings import warn
102 if self._warnings:
103 warnings = self._get_db().show_warnings()
104 if warnings:
105 # This is done in two loops in case
106 # Warnings are set to raise exceptions.
107 for w in warnings:
108 self.messages.append((self.Warning, w))
109 for w in warnings:
110 warn(w[-1], self.Warning, 3)
111 elif self._info:
112 self.messages.append((self.Warning, self._info))
113 warn(self._info, self.Warning, 3)
114
115 def nextset(self):
116 """Advance to the next result set.

Callers 7

nextsetMethod · 0.95
executeMethod · 0.95
executemanyMethod · 0.95
callprocMethod · 0.95
fetchoneMethod · 0.80
fetchmanyMethod · 0.80
fetchallMethod · 0.80

Calls 2

_get_dbMethod · 0.95
show_warningsMethod · 0.80

Tested by

no test coverage detected