Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notIn construction #738

Open
1ou opened this issue Dec 24, 2017 · 0 comments
Open

notIn construction #738

1ou opened this issue Dec 24, 2017 · 0 comments

Comments

@1ou
Copy link

1ou commented Dec 24, 2017

I try get records from database like that:

    // Images
    fun getImage(watchedImages: List<Int>): Single<T> = (store select type)
            .where(Image::idImage.notIn(watchedImages))
            .orderBy(Random())
            .limit(1)
            .get()
            .observable()
            .firstOrError()

But in all cases i get some record from database. Even if i have 1 record in database which one has idImage equal 1, and watchedImages consists from [1]. In that case i wanna get error but i get in onSuccess instead of onError. Where am i making error?

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

No branches or pull requests

1 participant