From d6669a01d7cc56a2ddaf8e5bc2e813046153ecdd Mon Sep 17 00:00:00 2001 From: bergmann Date: Mon, 4 Mar 2019 19:51:32 +0100 Subject: [PATCH] * fixed serialization of flags/sets (elements of the set were serializes as number and not as name of the enum value) --- .../cpphibernate/driver/mariadb/helper/type_properties.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/cpphibernate/driver/mariadb/helper/type_properties.h b/include/cpphibernate/driver/mariadb/helper/type_properties.h index 5d781e6..ddb211a 100644 --- a/include/cpphibernate/driver/mariadb/helper/type_properties.h +++ b/include/cpphibernate/driver/mariadb/helper/type_properties.h @@ -1,5 +1,9 @@ #pragma once +#include +#include +#include + #include #include #include @@ -557,7 +561,7 @@ beg_namespace_cpphibernate_driver_mariadb { if (first) first = false; else os << ","; - utl::to_string(os, static_cast(e)); + os << utl::enum_conversion::to_string(e, false); } return os.str(); }