From f2ef0c66d9fcd44ae16abd614a32fce5fa40b72f Mon Sep 17 00:00:00 2001 From: Sasikanth Miriyampalli Date: Sat, 29 Jun 2024 14:09:21 +0530 Subject: [PATCH] Don't update date, when updating posts work around for #427 --- .../sqldelight/dev/sasikanth/rss/reader/database/Post.sq | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/src/commonMain/sqldelight/dev/sasikanth/rss/reader/database/Post.sq b/shared/src/commonMain/sqldelight/dev/sasikanth/rss/reader/database/Post.sq index 2b5822e6e..87d110630 100644 --- a/shared/src/commonMain/sqldelight/dev/sasikanth/rss/reader/database/Post.sq +++ b/shared/src/commonMain/sqldelight/dev/sasikanth/rss/reader/database/Post.sq @@ -23,7 +23,7 @@ upsert: INSERT INTO post(id, sourceId, title, description, rawContent, imageUrl, date, link, commentsLink) VALUES (:id, :sourceId, :title, :description, :rawContent, :imageUrl, :date, :link, :commnetsLink) ON CONFLICT(id) DO -UPDATE SET title = excluded.title, description = excluded.description, rawContent = excluded.rawContent, imageUrl = excluded.imageUrl, date = excluded.date; +UPDATE SET title = excluded.title, description = excluded.description, rawContent = excluded.rawContent, imageUrl = excluded.imageUrl; count: SELECT COUNT(DISTINCT post.id) FROM post