diff --git a/include/postgresql.hpp b/include/postgresql.hpp index 07f2a0b9..2e25513d 100644 --- a/include/postgresql.hpp +++ b/include/postgresql.hpp @@ -333,7 +333,7 @@ class postgresql { } else if constexpr (std::is_same_v) { 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;