Bug #69616 | Executing multi=true query with SHOW GLOBAL STATUS returns no rows | ||
---|---|---|---|
Submitted: | 28 Jun 2013 18:23 | Modified: | 4 Jul 2013 9:49 |
Reporter: | Mike Reust | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connector / Python | Severity: | S3 (Non-critical) |
Version: | OS: | Any | |
Assigned to: | Geert Vanderkelen | CPU Architecture: | Any |
[28 Jun 2013 18:23]
Mike Reust
[1 Jul 2013 4:01]
MySQL Verification Team
is it intended that the single quotes are missing from the last 4 queries?
[1 Jul 2013 4:05]
Mike Reust
No, the missing comments is a typo. The issue persists, even with the comments fixed.
[4 Jul 2013 9:49]
Geert Vanderkelen
Hi Mike, You should loop over the results like this: for result in cursor.execute(query, multi=True): if result.with_rows: print(result.fetchall()) Please check the example 'multi_resultsets.py' in the source.