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

Wrong index in `x` info table #2

wqweto opened this Issue May 23, 2014 · 1 comment


None yet
2 participants
Copy link

wqweto commented May 23, 2014

Line 33
is currently int currentX = X_OFFSET + (3 * searchTextCol * (i + 1)); should become int currentX = X_OFFSET + (3 * (searchTextCol + i * colCount)); or similar.

Here is a sinppet from sqlite docs for matchinfo

          hits_this_row  = array[3 * (c + p*cols) + 0]
          hits_all_rows  = array[3 * (c + p*cols) + 1]
          docs_with_hits = array[3 * (c + p*cols) + 2]

where column idx c is searchTextCol, phrase idx p is i and number of cols cols is colCount


This comment has been minimized.

Copy link

wataradio commented Jul 11, 2015

+1. currentX is calculated wrongly. It should be modified as wqweto are saying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment