Skip to content

Commit 05c7fc9

Browse files
committed
add typemap for allRelated in close method
1 parent 0e6963f commit 05c7fc9

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

src/gstype_python.i

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2429,3 +2429,21 @@ static bool getRowFields(GSRow* row, int columnCount, GSType* typeList, bool tim
24292429
SWIG_fail;
24302430
}
24312431
}
2432+
2433+
/**
2434+
* Support close method : Store.close()
2435+
*/
2436+
%typemap(in) GSBool allRelated{
2437+
2438+
bool tmpBool;
2439+
int checkConvert = 0;
2440+
2441+
//input is boolean
2442+
checkConvert = SWIG_AsVal_bool($input, &tmpBool);
2443+
if (!SWIG_IsOK(checkConvert)) {
2444+
PyErr_SetString(PyExc_ValueError, "Invalid value for bool value");
2445+
SWIG_fail;
2446+
}
2447+
$1 = ((tmpBool == true) ? GS_TRUE : GS_FALSE);
2448+
2449+
}

0 commit comments

Comments
 (0)