From 7aaf51358448201bfc1b4122539b3194d181dad3 Mon Sep 17 00:00:00 2001 From: Jacyking <43704572+Jacyking@users.noreply.github.com> Date: Wed, 1 Nov 2023 17:12:03 +0800 Subject: [PATCH] `filed` --- include/utility.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/utility.hpp b/include/utility.hpp index 2031fa2f..23b9b76d 100644 --- a/include/utility.hpp +++ b/include/utility.hpp @@ -150,7 +150,11 @@ inline std::string get_fields() { return alisa_fields; } for (const auto &it : iguana::Reflect_members::arr()) { +#ifdef ORMPP_ENABLE_MYSQL + alisa_fields += "`" + std::string(it.data()) + "`"; +#else alisa_fields += it.data(); +#endif alisa_fields += ","; } alisa_fields.back() = ' '; @@ -333,4 +337,4 @@ constexpr std::string_view get_field_name(std::string_view full_name) { get_field_name(std::string_view(#field)).data() } // namespace ormpp -#endif // ORM_UTILITY_HPP \ No newline at end of file +#endif // ORM_UTILITY_HPP