Skip to content

database/gdb: The Insert method reports a null pointer error #3668

@alaywn

Description

@alaywn

Go version

go version go1.22.4 darwin/arm64

GoFrame version

2.7.2

Can this bug be reproduced with the latest release?

Option Yes

What did you do?

对项目原有代码没有做任何修改

What did you see happen?

someDAO.Ctx(ctx).
Cache(gdb.CacheOption{
Duration: -1,
Name: "cache_name",
Force: false,
}).
Data(some_struct_data).
Insert()

执行类似上述的Insert代码时,提示空指针错误。在2.7.1版本中上述代码是正常的,没有任何问题。

What did you expect to see?

修复bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIt is confirmed a bug, but don't worry, we'll handle it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions