Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23a42230 authored by Vasu Nori's avatar Vasu Nori Committed by Android (Google) Code Review
Browse files

Merge "when sqlite returns SQLITE_OK on SQLITEStatement.execute(), ignore it"

parents ffa5de2e d72ec5f2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -58,7 +58,9 @@ static void native_execute(JNIEnv* env, jobject object)
    err = sqlite3_step(statement);

    // Throw an exception if an error occured
    if (err != SQLITE_DONE) {
    if (err == SQLITE_ROW) {
        LOGV("Queries cannot be performed using execute(). use SQLiteDatabase.query() instead.");
    } else if (err != SQLITE_DONE) {
        throw_sqlite3_exception_errcode(env, err, sqlite3_errmsg(handle));
    }