Bug 720461 - Fix loop logic in Android SQLiteBridge. r=dougt

This commit is contained in:
Gian-Carlo Pascutto 2012-01-25 07:53:04 +01:00
Родитель 36c9cf4197
Коммит 99084ce2d7
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -235,7 +235,7 @@ Java_org_mozilla_gecko_sqlite_SQLiteBridge_sqliteCall(JNIEnv* jenv, jclass,
// For each row, add an Object[] to the passed ArrayList,
// with that containing either String or ByteArray objects
// containing the columns
do {
while (rc != SQLITE_DONE) {
// Process row
// Construct Object[]
jobjectArray jRow = jenv->NewObjectArray(cols,
@ -297,7 +297,7 @@ Java_org_mozilla_gecko_sqlite_SQLiteBridge_sqliteCall(JNIEnv* jenv, jclass,
LOG("Can't re-step statement:(%d) %s\n", rc, f_sqlite3_errmsg(db));
goto error_close;
}
} while (rc != SQLITE_DONE);
}
rc = f_sqlite3_finalize(ppStmt);
if (rc != SQLITE_OK) {