Closed kyscott18 closed 3 months ago
The "update" branch of the flush function uses onConflict to overwrite existing database rows, but when there are no rows besides "id", nothing needs to be updated. Previously this code path was causing an SQL syntax error, now it just exits early.
onConflict
LGTM - I assume that test was failing before the change?
yes
The "update" branch of the flush function uses
onConflict
to overwrite existing database rows, but when there are no rows besides "id", nothing needs to be updated. Previously this code path was causing an SQL syntax error, now it just exits early.