Commit f87cee1
committed
Fix insertWithOnConflict in SQLiteDatabase
This change checks the sqlite3_changes following execution
of the insert statement. If no changes were made, we return -1,
otherwise we return the last row id from the database.1 parent af5f07f commit f87cee1
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2026 | 2026 | | |
2027 | 2027 | | |
2028 | 2028 | | |
2029 | | - | |
| 2029 | + | |
2030 | 2030 | | |
2031 | 2031 | | |
2032 | 2032 | | |
| |||
0 commit comments