Skip to content

Is it possible to turn off getting the last inserted id? #6343

@ppanphper

Description

@ppanphper

Your Question

If returning id is turned off, and the model contains an ID field, lastInsertId will be read by default;
eg: driver postgres
WithoutReturning: true

gorm.Model contain ID field

The document you expected this should be explained

Expected answer

Is it possible to turn off this feature?
image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions