Fix insertIfNotExist foreign key conflict
This commit is contained in:
parent
f76abd98be
commit
12b2531cda
|
@ -515,8 +515,8 @@ interface ArticleDao {
|
|||
"""
|
||||
INSERT INTO article
|
||||
SELECT :id, :date, :title, :author, :rawDescription,
|
||||
:shortDescription, :fullContent, :img, :link, :feedId,
|
||||
:accountId, :isUnread, :isStarred, :isReadLater
|
||||
:shortDescription, :fullContent, :link, :feedId,
|
||||
:accountId, :isUnread, :isStarred, :isReadLater, :img
|
||||
WHERE NOT EXISTS(SELECT 1 FROM article WHERE link = :link AND accountId = :accountId)
|
||||
"""
|
||||
)
|
||||
|
|
|
@ -96,7 +96,8 @@ class RssHelper @Inject constructor(
|
|||
"RLog",
|
||||
"request rss:\n" +
|
||||
"name: ${feed.name}\n" +
|
||||
"url: ${feed.url}\n" +
|
||||
"feedUrl: ${feed.url}\n" +
|
||||
"url: ${it.link}\n" +
|
||||
"title: ${it.title}\n" +
|
||||
"desc: ${desc}\n" +
|
||||
"content: ${content}\n"
|
||||
|
|
Loading…
Reference in New Issue
Block a user