Skip to content

Commit

Permalink
Merge pull request #173 from Jacyking/master
Browse files Browse the repository at this point in the history
update generate_insert_sql
  • Loading branch information
Jacyking committed Aug 15, 2024
2 parents e2785ce + 89add25 commit fd01e4d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ormpp/utility.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,11 +346,9 @@ inline std::string generate_insert_sql(bool insert, Args &&...args) {
}
}
if (fields.back() != ')') {
fields.pop_back();
fields.back() = ')';
}
if (values.back() != ')') {
values.pop_back();
values.back() = ')';
}
append(sql, fields, values);
Expand Down

0 comments on commit fd01e4d

Please sign in to comment.