Ver código fonte

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

master
bergmann 7 anos atrás
pai
commit
d6669a01d7
1 arquivos alterados com 5 adições e 1 exclusões
  1. +5
    -1
      include/cpphibernate/driver/mariadb/helper/type_properties.h

+ 5
- 1
include/cpphibernate/driver/mariadb/helper/type_properties.h Ver arquivo

@@ -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();
}


Carregando…
Cancelar
Salvar