You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by is...@apache.org on 2023/08/22 14:28:27 UTC

[ignite-3] 01/03: IGNITE-19983 Added bool writing

This is an automated email from the ASF dual-hosted git repository.

isapego pushed a commit to branch ignite-19983
in repository https://gitbox.apache.org/repos/asf/ignite-3.git

commit 00e712dcb99ffedd8b02209effb1b70f05f3172b
Author: Igor Sapego <is...@apache.org>
AuthorDate: Tue Aug 22 17:50:06 2023 +0400

    IGNITE-19983 Added bool writing
---
 modules/platforms/cpp/ignite/client/detail/utils.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/platforms/cpp/ignite/client/detail/utils.cpp b/modules/platforms/cpp/ignite/client/detail/utils.cpp
index 0be8047efa..5a7e06111e 100644
--- a/modules/platforms/cpp/ignite/client/detail/utils.cpp
+++ b/modules/platforms/cpp/ignite/client/detail/utils.cpp
@@ -35,6 +35,9 @@ namespace ignite::detail {
  */
 void claim_column(binary_tuple_builder &builder, ignite_type typ, const primitive &value, std::int32_t scale) {
     switch (typ) {
+        case ignite_type::BOOLEAN:
+            builder.claim_bool(value.get<bool>());
+            break;
         case ignite_type::INT8:
             builder.claim_int8(value.get<std::int8_t>());
             break;
@@ -107,6 +110,9 @@ void claim_column(binary_tuple_builder &builder, ignite_type typ, const primitiv
  */
 void append_column(binary_tuple_builder &builder, ignite_type typ, const primitive &value, std::int32_t scale) {
     switch (typ) {
+        case ignite_type::BOOLEAN:
+            builder.append_bool(value.get<bool>());
+            break;
         case ignite_type::INT8:
             builder.append_int8(value.get<std::int8_t>());
             break;