From aa13f57e7dd96887d6f53f278f2d110076951b69 Mon Sep 17 00:00:00 2001 From: cloudhead Date: Wed, 15 Nov 2023 14:02:27 +0100 Subject: [PATCH] radicle: Fix issues with the address store SQL --- radicle/src/node/address/store.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radicle/src/node/address/store.rs b/radicle/src/node/address/store.rs index a1a555a6..776d9682 100644 --- a/radicle/src/node/address/store.rs +++ b/radicle/src/node/address/store.rs @@ -218,7 +218,7 @@ impl Store for Book { timestamp: Timestamp, ) -> Result { let mut stmt = self.db.prepare( - "INSERT INTO repo-sync-status (repo, node, head, timestamp) + "INSERT INTO `repo-sync-status` (repo, node, head, timestamp) VALUES (?1, ?2, ?3, ?4) ON CONFLICT DO UPDATE SET head = ?3, timestamp = ?4 @@ -227,7 +227,7 @@ impl Store for Book { stmt.bind((1, rid))?; stmt.bind((2, nid))?; stmt.bind((3, at.to_string().as_str()))?; - stmt.bind((3, timestamp as i64))?; + stmt.bind((4, timestamp as i64))?; stmt.next()?; Ok(self.db.change_count() > 0)