Skip to content

Support vector<obx_id> in in/notIn query filters and setParameter - #47

Open
Tyagiquamar wants to merge 1 commit into
objectbox:mainfrom
Tyagiquamar:fix/obx-id-in-filter
Open

Tyagiquamar wants to merge 1 commit into
objectbox:mainfrom
Tyagiquamar:fix/obx-id-in-filter

Conversation

@Tyagiquamar

Copy link
Copy Markdown

Fixes #42.

obx_id is uint64_t (objectbox.h) but Property in/notIn only accepted vector<int32_t>/vector<int64_t>, so passing vector<obx_id> failed to compile.

This adds header-only vector<obx_id> overloads for in/notIn (Long/Relation properties) and a Query setParameter overload, each converting to the existing int64 path with a same-size static_assert.

Compile-checked: g++ 12 -std=c++17 -fsyntax-only on include/objectbox.hpp plus a TU instantiating in(ids)/notIn(ids) with vector<obx_id> (lvalue and rvalue) - both clean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

in filter does not support obx_id

1 participant