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 e8c3007 commit 7d52c2dCopy full SHA for 7d52c2d
tormysql/client.py
@@ -72,12 +72,12 @@ def select_db(self, db):
72
def cursor(self, cursor_cls=None):
73
if cursor_cls is None:
74
cursor_cls = self._connection.cursorclass
75
-
+
76
cursor = self._connection.cursor(
77
cursor_cls.__delegate_class__ if cursor_cls and issubclass(cursor_cls, Cursor) else cursor_cls
78
)
79
80
- if cursor_cls:
+ if issubclass(cursor_cls, Cursor):
81
return cursor_cls(cursor)
82
else:
83
return cursor.__tormysql_class__(cursor)
0 commit comments