Change logic of delivering db path and handle
[platform/core/appfw/pkgmgr-info.git] / src / common / database / depinfo_db_handler.cc
index 13441d4..94ac734 100644 (file)
@@ -46,11 +46,11 @@ int DepInfoGetDBHandler::Execute() {
     return PMINFO_R_ERROR;
   }
   GList *list = nullptr;
-  std::vector<sqlite3*> conn_list = GetConnection();
+  std::vector<std::pair<sqlite3*, uid_t>> conn_list = GetConnection();
   int ret = PMINFO_R_OK;
   for (auto& conn : conn_list) {
     ret = pkginfo_internal_filter_get_depends_on(
-        conn, pkgid_.c_str(), &list);
+        conn.first, pkgid_.c_str(), &list);
     if (ret == PMINFO_R_ERROR)
       break;
   }