From 62be3a23f03ea3b24cbadc5b4361b5c3923dd81d Mon Sep 17 00:00:00 2001 From: Jacyking <791026912@qq.com> Date: Tue, 19 Dec 2023 16:01:31 +0800 Subject: [PATCH] cancel pg auto key lack of type --- include/postgresql.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;