Sfoglia il codice sorgente

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

master
bergmann 7 anni fa
parent
commit
d6669a01d7
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. +5
    -1
      include/cpphibernate/driver/mariadb/helper/type_properties.h

+ 5
- 1
include/cpphibernate/driver/mariadb/helper/type_properties.h Vedi File

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


Caricamento…
Annulla
Salva