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

Not Work get one row data #5

Closed
UrbanSide opened this issue Apr 27, 2020 · 0 comments
Closed

Not Work get one row data #5

UrbanSide opened this issue Apr 27, 2020 · 0 comments

Comments

@UrbanSide
Copy link

UrbanSide commented Apr 27, 2020

Cursor res = stores.searchInColumn(3, gid, -1); // Here we passed limit = 1. Thus it will return only one row data with the matched column value
        Log.e("Ress","size  "+res.getCount());
        if (res != null) {
            res.moveToFirst(); // Because here's only one row data
            String desc = res.getString(4); //error here
            String name = res.getString(5);

I get error Caused by: java.lang.ArrayIndexOutOfBoundsException: length=1; index=3
How i can read one row?

P.S I remember about V2 but I like this library and it’s convenient, in the new I don’t understand some points

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