diff options
author | Jeffrey Brown <jeffbrown@android.com> | 2013-02-07 03:48:22 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-02-07 03:48:23 +0000 |
commit | af595a0f37643f12f32860fdea43fb67b74654b4 (patch) | |
tree | 3c1e12a402c43459939cb4e85efa8b636ba7db79 | |
parent | b314f433905ea2cbc62bd5af658f05261a752e5a (diff) | |
parent | 2a3b91846e73cf6917b50050206e10fafd0302b1 (diff) | |
download | base-af595a0f37643f12f32860fdea43fb67b74654b4.tar.gz |
Merge "Fix bugs regarding IllegalStateException during moving position in cursorwindow."
-rw-r--r-- | core/jni/android_database_SQLiteConnection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/android_database_SQLiteConnection.cpp b/core/jni/android_database_SQLiteConnection.cpp index c9cf2fa9c282..f70f0d1900c4 100644 --- a/core/jni/android_database_SQLiteConnection.cpp +++ b/core/jni/android_database_SQLiteConnection.cpp @@ -706,7 +706,7 @@ static jlong nativeExecuteForCursorWindow(JNIEnv* env, jclass clazz, } CopyRowResult cpr = copyRow(env, window, statement, numColumns, startPos, addedRows); - if (cpr == CPR_FULL && addedRows && startPos + addedRows < requiredPos) { + if (cpr == CPR_FULL && addedRows && startPos + addedRows <= requiredPos) { // We filled the window before we got to the one row that we really wanted. // Clear the window and start filling it again from here. // TODO: Would be nicer if we could progressively replace earlier rows. |