-
Notifications
You must be signed in to change notification settings - Fork 18
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
Multiple Where clauses not working? #39
Comments
List<Note> notes = Select.from(Note.class).execute(); I removed it from the documentation.
Note note = Select.from(Note.class).where("id=? AND title LIKE '?%'", 1, "Hello").fetchSingle(); Thanks for your report! |
There is still an issue where I wish to return all (or paginated) data filtered by the query using All the documentation advises only of using Maybe |
How to use single column to get multiple value based on filter , given below code error . kindly solve this query |
ReActiveAndroid Version: 1.4.3
Bug or Feature Request: Multiple WHERE clauses in query
Description: I'm trying to migrate from ActiveAndroid to REActiveAndroid but having some problems with multiple WHERE clause migrations.
The old way to do it in AA was like:
Note note = Select.from(Note.class).where("noteId = ?", username).where("noteContent= ?", content).fetchSingle();
Now, according to this migration guide: https://imangazalievm.gitbooks.io/reactiveandroid/migration-from-activeandroid.html we're supposed to do it this way:
There's several problems with this. First, "notes" is defined twice, Second ".execute();" cannot be resolved by Android Studio, and third (and perhaps most importantly) when I build it like the tutorial states, I get:
java.lang.IllegalArgumentException: Cannot bind argument at index 2 because the index is out of range. The statement has 1 parameters.
Why this change? What should I do to fix it?
The text was updated successfully, but these errors were encountered: