From 8d6d0ddbf85b2bcf750bf7b76ea382148e91c8e7 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Mon, 11 Jul 2022 17:51:50 +0200 Subject: [PATCH] update to the new morm::Finder interface --- winixd/models/item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winixd/models/item.cpp b/winixd/models/item.cpp index f23f4cc..bd4ca44 100644 --- a/winixd/models/item.cpp +++ b/winixd/models/item.cpp @@ -432,7 +432,7 @@ CalcItemsHelper Item::calc_items_by_url(long parent_id, const std::wstring & url morm::Finder finder(model_connector); CalcItemsHelper helper = finder. - prepare_to_select(). + select(morm::Select::no_auto_generated_columns). raw("select count(id) as size, min(id) as item_id from core.item"). where(). eq(L"parent_id", parent_id).