diff options
author | Jeffrey Brown <jeffbrown@android.com> | 2013-02-06 20:49:47 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-02-06 20:49:47 -0800 |
commit | 1950d2e6575e04fc623d1d0bcc32393ce4dfef93 (patch) | |
tree | 21d76c3754e0cad78e4f2b8553971f22ac34f127 | |
parent | e4ce25177bdf7720c6b3dd5ea7b48f6b03b06469 (diff) | |
parent | af595a0f37643f12f32860fdea43fb67b74654b4 (diff) | |
download | frameworks_base-1950d2e6575e04fc623d1d0bcc32393ce4dfef93.zip frameworks_base-1950d2e6575e04fc623d1d0bcc32393ce4dfef93.tar.gz frameworks_base-1950d2e6575e04fc623d1d0bcc32393ce4dfef93.tar.bz2 |
am af595a0f: Merge "Fix bugs regarding IllegalStateException during moving position in cursorwindow."
# By Jangwon Lee
# Via Gerrit Code Review (1) and git-lg-database.lge.com (1)
* commit 'af595a0f37643f12f32860fdea43fb67b74654b4':
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 c9cf2fa..f70f0d1 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. |