From 0f848b7c068187d1bdd6b945facefbe7be112000 Mon Sep 17 00:00:00 2001 From: Oussama Teffahi Date: Wed, 11 Dec 2024 16:59:30 +0100 Subject: [PATCH] Fix z_queryable example output --- examples/universal/z_queryable.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/universal/z_queryable.cxx b/examples/universal/z_queryable.cxx index 39d0455..0aad924 100644 --- a/examples/universal/z_queryable.cxx +++ b/examples/universal/z_queryable.cxx @@ -52,9 +52,10 @@ int _main(int argc, char **argv) { std::cout << "Declaring Queryable on '" << keyexpr << "'...\n"; auto on_query = [payload, keyexpr](const Query &query) { + auto query_keyexpr = query.get_keyexpr(); auto params = query.get_parameters(); auto query_payload = query.get_payload(); - std::cout << ">> [Queryable ] Received Query '" << keyexpr << "?" << params; + std::cout << ">> [Queryable ] Received Query '" << query_keyexpr.as_string_view() << "?" << params; if (query_payload.has_value()) { std::cout << "' with value = '" << query_payload->get().as_string(); }