MCPcopy Index your code
hub / github.com/PyMySQL/mysqlclient / nextset

Method nextset

src/MySQLdb/cursors.py:119–133  ·  view source on GitHub ↗

Advance to the next result set. Returns None if there are no more result sets.

(self)

Source from the content-addressed store, hash-verified

117 raise ProgrammingError("execute() first")
118
119 def nextset(self):
120 """Advance to the next result set.
121
122 Returns None if there are no more result sets.
123 """
124 if self._executed:
125 self.fetchall()
126
127 db = self._get_db()
128 nr = db.next_result()
129 if nr == -1:
130 return None
131 self._do_get_result(db)
132 self._post_get_result()
133 return 1
134
135 def _do_get_result(self, db):
136 self._result = result = self._get_result()

Callers 5

callprocMethod · 0.95
test_nextsetMethod · 0.80
test_nextsetMethod · 0.80

Calls 4

_get_dbMethod · 0.95
_do_get_resultMethod · 0.95
_post_get_resultMethod · 0.95
fetchallMethod · 0.45

Tested by 4

test_nextsetMethod · 0.64
test_nextsetMethod · 0.64