Fix wrong query 64/205964/1
authorhyunho <hhstark.kang@samsung.com>
Mon, 13 May 2019 01:26:30 +0000 (10:26 +0900)
committerhyunho <hhstark.kang@samsung.com>
Mon, 13 May 2019 01:26:30 +0000 (10:26 +0900)
Change-Id: Idc4837bc3e9c1cb63900986a5e3f36bea7d2a7e3
Signed-off-by: hyunho <hhstark.kang@samsung.com>
notification-ex/db_manager.cc

index d180077..fc3b38a 100644 (file)
@@ -716,7 +716,7 @@ list<shared_ptr<item::AbstractItem>> DBManager::GetNotificationList(int uid) {
                             " ORDER BY insert_time DESC", uid);
   } else {
     query = sqlite3_mprintf("SELECT data FROM noti_ex_list"
-            " WHERE  uid = %d AND (policy & %d) != 0 ORDER BY insert_time DESC",
+            " WHERE  uid = %d AND (policy & %d) == 0 ORDER BY insert_time DESC",
             uid, static_cast<int>(item::AbstractItem::Policy::SimMode));
   }