From c56bae57ca68635699579b6b72261e2f8c1aad28 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Tue, 28 Feb 2023 09:48:44 +0100 Subject: [PATCH] fix: propagate the model_data in the cursor model_data can be used in Model::fields() method --- src/cursor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cursor.h b/src/cursor.h index 688eb31..3ca4f06 100644 --- a/src/cursor.h +++ b/src/cursor.h @@ -5,7 +5,7 @@ */ /* - * Copyright (c) 2018-2022, Tomasz Sowa + * Copyright (c) 2018-2023, Tomasz Sowa * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -186,6 +186,7 @@ public: model_env.finder_helper = &finder_helper; model_env.select_flags = select_flags; model_env.rows_counter = 0; + model_env.model_data = model_data; if( model_env.select_flags.is_with_rows_counter() ) {