Skip to content

Commit

Permalink
Merge pull request #125 from carlopi/fix_arrow_insertion
Browse files Browse the repository at this point in the history
Add explicit casts to Buffer registration
  • Loading branch information
carlopi authored Oct 1, 2024
2 parents 874c0dd + 3f29201 commit c313775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ Napi::Value Connection::RegisterBuffer(const Napi::CallbackInfo &info) {
auto raw_ptr = reinterpret_cast<uint64_t>(arr.ArrayBuffer().Data());
auto length = (uint64_t)arr.ElementLength();

arrow_scan_function += "{'ptr': " + std::to_string(raw_ptr) + ", 'size': " + std::to_string(length) + "},";
arrow_scan_function += "{'ptr': " + std::to_string(raw_ptr) + "::UBIGINT, 'size': " + std::to_string(length) + "::UBIGINT},";
}
arrow_scan_function += "])";

Expand Down

0 comments on commit c313775

Please sign in to comment.