8000 [C-API] Querying with object list arguments does not work · Issue #6688 · realm/realm-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[C-API] Querying with object list arguments does not work #6688
Closed
@rorbech

Description

@rorbech

Expected results

Queries with objects in list arguments should work

Ex. passing object references to the IN operator as in this Kotlin test should match the objects that points to the given argument objects:

val child = realm.writeBlocking {
    val child = copyToRealm(QuerySample().apply { stringField = "child" })
    copyToRealm(QuerySample().apply { nullableRealmObject = child })
    child
}

val result = realm.query<QuerySample>("nullableRealmObject IN $0", listOf(even, odd)).find()
assertEquals(1, result.size)

Actual Results

The above query does not return any result. A C-API test of the same has been written in https://github.com/realm/realm-core/pull/6686/files

Steps & Code to Reproduce

See https://github.com/realm/realm-core/pull/6686/files

Core version

Core version: 13.11.0 - https://github.com/realm/realm-core/tree/d8721d7baec39571e7e5373c3f407a50d144307e

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0