From 1c807ba3d662141da6fd121d783dd8dda59bb80e Mon Sep 17 00:00:00 2001 From: Renan Lukas <14964993+RenanLukas@users.noreply.github.com> Date: Mon, 26 Feb 2024 20:50:28 -0300 Subject: [PATCH] Replace INSERT with INSERT OR REPLACE when updating the table tbl_publicize_connections --- .../java/org/wordpress/android/datasets/PublicizeTable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WordPress/src/main/java/org/wordpress/android/datasets/PublicizeTable.java b/WordPress/src/main/java/org/wordpress/android/datasets/PublicizeTable.java index 71f44134363c..f4149762b8e1 100644 --- a/WordPress/src/main/java/org/wordpress/android/datasets/PublicizeTable.java +++ b/WordPress/src/main/java/org/wordpress/android/datasets/PublicizeTable.java @@ -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