We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcc4b8d commit 1ae44d9Copy full SHA for 1ae44d9
1 file changed
objectbox/query.py
@@ -46,6 +46,8 @@ def find_ids(self) -> List[int]:
46
c_id_array_p = obx_query_find_ids(self._c_query)
47
try:
48
c_id_array: OBX_id_array = c_id_array_p.contents
49
+ if c_id_array.count == 0:
50
+ return []
51
ids = ctypes.cast(c_id_array.ids, ctypes.POINTER(obx_id * c_id_array.count))
52
return list(ids.contents)
53
finally:
0 commit comments