We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21c7178 commit 2b6bbfeCopy full SHA for 2b6bbfe
sqlite_minutils/db.py
@@ -421,6 +421,7 @@ def query(
421
parameters, or a dictionary for ``where id = :id``
422
"""
423
cursor = self.execute(sql, tuple(params or tuple()))
424
+ if cursor.description is None: return []
425
keys = [d[0] for d in cursor.description]
426
for row in cursor:
427
yield dict(zip(keys, row))
0 commit comments