View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003975 | SymmetricDS | Bug | public | 2019-05-22 16:47 | 2019-05-22 16:47 |
Reporter | elong | Assigned To | |||
Priority | normal | ||||
Status | new | Resolution | open | ||
Product Version | 3.8.0 | ||||
Summary | 0003975: Android SQLITE_CONSTRAINT_PRIMARYKEY | ||||
Description | User reported that an update will sometimes get 0 rows affected, which causes a fallback to an insert, which then returns SQLITE_CONSTRAINT_PRIMARYKEY because the row already exists. The call to select changes() to return the affected rows is returning 0 in some cases. Code re-implementation for AndrdoidSqlTemplate.update(SQLiteDatabase database, String sql, Object[] values, int[] types) is provided here: https://sourceforge.net/p/symmetricds/discussion/1354726/thread/664087b442/ | ||||
Tags | dialect: android | ||||