Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

database/gdb: create/update/delele time should not be overridden if it has been specified #3613

Closed
jswxstw opened this issue May 28, 2024 · 0 comments · Fixed by #3615
Closed
Labels
bug It is confirmed a bug, but don't worry, we'll handle it.

Comments

@jswxstw
Copy link
Contributor

jswxstw commented May 28, 2024

Go version

go version go1.21.3 darwin/amd64

GoFrame version

2.7.1

Can this bug be reproduced with the latest release?

Option Yes

What did you do?

dao.InstanceRisk.Ctx(ctx).Insert(do.InstanceRisk{
    InstanceId:   in.InstanceId,
    TypeId:       riskType.Id,
    CreatedAt:    in.CreatedAt,
})

Insert a new record with created_at already specified.

What did you see happen?

The value of created_at is overridden by NOW().

What did you expect to see?

The value of created_at should be the specified value.

@jswxstw jswxstw added the bug It is confirmed a bug, but don't worry, we'll handle it. label May 28, 2024
jswxstw pushed a commit to jswxstw/gf that referenced this issue May 28, 2024
@jswxstw jswxstw changed the title database/gdb: create/update/delele time should not be overridden when user has specified database/gdb: create/update/delele time should not be overridden if it has been specified May 28, 2024
jswxstw pushed a commit to jswxstw/gf that referenced this issue May 28, 2024
jswxstw pushed a commit to jswxstw/gf that referenced this issue May 28, 2024
jswxstw pushed a commit to jswxstw/gf that referenced this issue May 28, 2024
jswxstw pushed a commit to jswxstw/gf that referenced this issue May 30, 2024
Signed-off-by: oninowang <[email protected]>
jswxstw pushed a commit to jswxstw/gf that referenced this issue May 31, 2024
Signed-off-by: oninowang <[email protected]>
jswxstw pushed a commit to jswxstw/gf that referenced this issue May 31, 2024
Signed-off-by: oninowang <[email protected]>
jswxstw added a commit to jswxstw/gf that referenced this issue Jun 4, 2024
gqcn pushed a commit that referenced this issue Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It is confirmed a bug, but don't worry, we'll handle it.
Projects
None yet
1 participant