Skip to content

Commit 2fcbcc6

Browse files
author
Theekshna Kotian
committed
Merged PR 5248: Fix numeric data type check in DDBCSQLExecute
Fix numeric data type check in DDBCSQLExecute Related work items: #33298
1 parent ae2e997 commit 2fcbcc6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mssql_python/pybind/ddbc_bindings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ SQLRETURN SQLExecute_wrap(const intptr_t statementHandle, const std::wstring& qu
594594
}
595595
case SQL_C_NUMERIC:
596596
{
597-
if (!py::isinstance<py::class_<NumericData>>(param)) {
597+
if (!py::isinstance<NumericData>(param)) {
598598
ThrowStdException(MakeParamMismatchErrorStr("SQL_C_NUMERIC", paramIndex));
599599
}
600600
NumericData decimalParam = param.cast<NumericData>();

0 commit comments

Comments
 (0)