Explorar el Código

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

master
bergmann hace 7 años
padre
commit
d6669a01d7
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. +5
    -1
      include/cpphibernate/driver/mariadb/helper/type_properties.h

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

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


Cargando…
Cancelar
Guardar