Skip to content

Commit

Permalink
Merge pull request #1440 from kuzudb/pybind-python-fix
Browse files Browse the repository at this point in the history
Add python bindings for new types
  • Loading branch information
mewim committed Apr 2, 2023
2 parents f4a7914 + b736723 commit c85bb1c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tools/python_api/src_cpp/py_query_result.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,18 @@ py::object PyQueryResult::convertValueToPyObject(const Value& value) {
case BOOL: {
return py::cast(value.getValue<bool>());
}
case INT16: {
return py::cast(value.getValue<int16_t>());
}
case INT32: {
return py::cast(value.getValue<int32_t>());
}
case INT64: {
return py::cast(value.getValue<int64_t>());
}
case FLOAT: {
return py::cast(value.getValue<float>());
}
case DOUBLE: {
return py::cast(value.getValue<double>());
}
Expand Down

0 comments on commit c85bb1c

Please sign in to comment.