Use update instead of updateWithOnConflict--it caused an api level error and we want the abort semantics anyways

pull/14/head
Sam Bosley 13 years ago
parent d1da4997da
commit 0d7f5b21b9

@ -257,8 +257,7 @@ abstract public class AbstractDatabase {
* @see android.database.sqlite.SQLiteDatabase#update(String table, ContentValues values, String whereClause, String[] whereArgs)
*/
public synchronized int update(String table, ContentValues values, String whereClause, String[] whereArgs) {
int result = getDatabase().updateWithOnConflict(table, values, whereClause, whereArgs,
SQLiteDatabase.CONFLICT_FAIL);
int result = getDatabase().update(table, values, whereClause, whereArgs);
onDatabaseUpdated();
return result;
}

Loading…
Cancel
Save