소스 검색

* 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 #pragma once


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

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


불러오는 중...
취소
저장