Преглед на файлове

* fixed serialization of flags/sets (elements of the set were serializes as number and not as name of the enum value)

master
bergmann преди 7 години
родител
ревизия
d6669a01d7
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. +5
    -1
      include/cpphibernate/driver/mariadb/helper/type_properties.h

+ 5
- 1
include/cpphibernate/driver/mariadb/helper/type_properties.h Целия файл

@@ -1,5 +1,9 @@
#pragma once

#include <cpputils/misc/enum.h>
#include <cpputils/misc/flags.h>
#include <cpputils/misc/string.h>

#include <cpphibernate/misc.h>
#include <cpphibernate/types.h>
#include <cpphibernate/config.h>
@@ -557,7 +561,7 @@ beg_namespace_cpphibernate_driver_mariadb
{
if (first) first = false;
else os << ",";
utl::to_string(os, static_cast<int>(e));
os << utl::enum_conversion<enum_type>::to_string(e, false);
}
return os.str();
}


Зареждане…
Отказ
Запис