Skip to content

Commit d69badb

Browse files
Use executeNonQuery logic from platform-frameworks-base which causes SQLiteStatementTest to pass
1 parent f83d22d commit d69badb

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

sqlcipher/src/main/jni/sqlcipher/android_database_SQLiteConnection.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -477,20 +477,13 @@ static void nativeResetStatementAndClearBindings(JNIEnv* env, jclass clazz, jlon
477477
}
478478

479479
static int executeNonQuery(JNIEnv* env, SQLiteConnection* connection, sqlite3_stmt* statement) {
480-
int err;
481-
while( SQLITE_ROW==(err=sqlite3_step(statement)) );
482-
if( err!=SQLITE_DONE ){
483-
throw_sqlite3_exception(env, connection->db);
484-
}
485-
#if 0
486480
int err = sqlite3_step(statement);
487481
if (err == SQLITE_ROW) {
488482
throw_sqlite3_exception(env,
489483
"Queries can be performed using SQLiteDatabase query or rawQuery methods only.");
490484
} else if (err != SQLITE_DONE) {
491485
throw_sqlite3_exception(env, connection->db);
492486
}
493-
#endif
494487
return err;
495488
}
496489

0 commit comments

Comments
 (0)