Skip to content

Commit

Permalink
Merge pull request #172 from Perdixky/为PG的名称获取添加引号
Browse files Browse the repository at this point in the history
add double-quotes(") pg table name
  • Loading branch information
Jacyking committed Aug 13, 2024
2 parents a57db8b + 4658b3b commit e2785ce
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 e2785ce

Please sign in to comment.