mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
Update contrib/drivers/pgsql/pgsql_do_insert.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@ -82,7 +82,7 @@ func (d *Driver) getPrimaryKeys(ctx context.Context, table string) ([]string, er
|
||||
|
||||
var primaryKeys []string
|
||||
for _, field := range tableFields {
|
||||
if gstr.Equal(field.Key, "PRI") {
|
||||
if gstr.Equal(field.Key, "pri") {
|
||||
primaryKeys = append(primaryKeys, field.Name)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user