Android SQLite Update not working

前端 未结 4 709
野趣味
野趣味 2020-12-11 08:48

I am trying to update one column for any number of rows.

Here is the function:

public void setAwardsSyncComplete(String[] ids) {

    String inArray         


        
4条回答
  •  被撕碎了的回忆
    2020-12-11 09:20

    As you're using transactions, you need to call db.setTransactionSuccessful(); at the end of the try clause. Without this, the update gets rolled back.

    See SQLiteDatabase.beginTransaction

    Hope this helps,

    Phil Lello

提交回复
热议问题