diff --git a/src_cpp/py_connection.cpp b/src_cpp/py_connection.cpp index 8f93519..de7c09d 100644 --- a/src_cpp/py_connection.cpp +++ b/src_cpp/py_connection.cpp @@ -913,6 +913,9 @@ Value PyConnection::transformPythonValueAs(const py::handle& val, const LogicalT Value PyConnection::transformPythonValueFromParameterAs(const py::handle& val, const LogicalType& type) { + if (val.is_none()) { + return Value::createNullValue(type); + } switch (type.getLogicalTypeID()) { case LogicalTypeID::LIST: { if (ListType::getChildType(type).getLogicalTypeID() == LogicalTypeID::JSON) {