Skip to content

Commit

Permalink
为PG的名称获取添加引号
Browse files Browse the repository at this point in the history
  • Loading branch information
Perdixky committed Aug 12, 2024
1 parent a57db8b commit 4658b3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ormpp/utility.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ inline void for_each0(const std::tuple<Args...> &t, Func &&f,
template <typename T, typename = std::enable_if_t<iguana::is_reflection_v<T>>>
inline std::string get_name() {
#ifdef ORMPP_ENABLE_PG
std::string quota_name = std::string(iguana::get_name<T>());
std::string quota_name = "\"" + std::string(iguana::get_name<T>()) + "\"";
#else
std::string quota_name = "`" + std::string(iguana::get_name<T>()) + "`";
#endif
Expand Down

0 comments on commit 4658b3b

Please sign in to comment.