Skip to content

Commit

Permalink
Merge pull request #20293 from wordpress-mobile/issue/19050-fix-uniqu…
Browse files Browse the repository at this point in the history
…e-constraint-tbl-publicize-connections

Replace INSERT with INSERT OR REPLACE when updating publicize connections table
  • Loading branch information
RenanLukas authored Feb 28, 2024
2 parents 235aab3 + 1c807ba commit a991a8e
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 a991a8e

Please sign in to comment.