Skip to content

Commit

Permalink
Replace INSERT with INSERT OR REPLACE when updating the table tbl_pub…
Browse files Browse the repository at this point in the history
…licize_connections
  • Loading branch information
RenanLukas committed Feb 26, 2024
1 parent 6fbf3fd commit 1c807ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public static void setConnectionsForSite(long siteId, PublicizeConnectionList co
db.delete(CONNECTIONS_TABLE, "site_id=?", new String[]{Long.toString(siteId)});

stmt = db.compileStatement(
"INSERT INTO " + CONNECTIONS_TABLE
"INSERT OR REPLACE INTO " + CONNECTIONS_TABLE
+ " (id," // 1
+ " site_id," // 2
+ " user_id," // 3
Expand Down

0 comments on commit 1c807ba

Please sign in to comment.