From 4cfefa89e5fc2042be1b31ccadfd8e8d2b314f62 Mon Sep 17 00:00:00 2001 From: SL Date: Wed, 6 Dec 2023 21:55:45 +0800 Subject: [PATCH] update sql query --- lib/db/conversation.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/db/conversation.dart b/lib/db/conversation.dart index 5a4fc04..ecf4194 100644 --- a/lib/db/conversation.dart +++ b/lib/db/conversation.dart @@ -60,8 +60,8 @@ class ConversationDB { lastMsg.unreadCount + conversationMsg.unreadCount; row = await WKDBHelper.shared.getDB().update( WKDBConst.tableConversation, getMap(conversationMsg, false), - where: - "channel_id='${conversationMsg.channelID}' and channel_type=${conversationMsg.channelType}"); + where: "channel_id=? and channel_type=?", + whereArgs: [conversationMsg.channelID, conversationMsg.channelType]); } if (row > 0) { return getUIMsg(conversationMsg);