Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 10c6f9f

Browse filesBrowse files
committed
Add typecheck for _mysql.result()
fixes PyMySQL#137
1 parent d16ced6 commit 10c6f9f
Copy full SHA for 10c6f9f

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎_mysql.c

Copy file name to clipboardExpand all lines: _mysql.c
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,8 @@ _mysql_ResultObject_Initialize(
378378
int n, i;
379379
MYSQL_FIELD *fields;
380380

381-
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|iO", kwlist,
382-
&conn, &use, &conv))
381+
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O!|iO", kwlist,
382+
&_mysql_ConnectionObject_Type, &conn, &use, &conv))
383383
return -1;
384384
if (!conv) {
385385
if (!(conv = PyDict_New()))

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.