Skip to content

Commit

Permalink
add alias and copy iguana
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacyking committed Aug 15, 2023
1 parent 6073af0 commit 929ca77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions iguana/reflection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,9 @@ constexpr std::array<frozen::string, N> get_alias_arr(Args... pairs) {
static std::string alisa_fields; \
for (const auto &it : arr()) { \
alisa_fields += it.data(); \
alisa_fields += ","; \
} \
alisa_fields.back() = ' '; \
return alisa_fields; \
} \
constexpr static size_t value() { return size_type::value; } \
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ormpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ TEST_CASE("get_insert_id") {
// sqlite.insert<person>({0, "purecpp", 200});
// sqlite.delete_records<person>("name = 'other';drop table person");
// auto vec = sqlite.query<person>();
// CHECK(vec.size() == 0);
// CHECK(vec.size() == 2);
// }
// #endif
// }
Expand Down

0 comments on commit 929ca77

Please sign in to comment.