Skip to content

Commit

Permalink
cancel pg auto key lack of type
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacyking committed Dec 19, 2023
1 parent 79b854d commit 62be3a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/postgresql.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ class postgresql {
}
else if constexpr (std::is_same_v<decltype(item), ormpp_auto_key>) {
if (!has_add_field) {
append(sql, field_name.data(), " ", type_name_arr[i]);
append(sql, field_name.data(), " ");
}
append(sql, " serial primary key");
has_add_field = true;
Expand Down

0 comments on commit 62be3a2

Please sign in to comment.