diff --git a/database/gdb/gdb_core.go b/database/gdb/gdb_core.go index 1a9082d97..af302d998 100644 --- a/database/gdb/gdb_core.go +++ b/database/gdb/gdb_core.go @@ -512,7 +512,7 @@ func (c *Core) Update(table string, data interface{}, condition interface{}, arg } // DoUpdate does "UPDATE ... " statement for the table. -// This function is usually used for custom interface definition, you do not need call it manually. +// This function is usually used for custom interface definition, you do not need to call it manually. func (c *Core) DoUpdate(ctx context.Context, link Link, table string, data interface{}, condition string, args ...interface{}) (result sql.Result, err error) { table = c.QuotePrefixTableName(table) var ( diff --git a/internal/structs/structs_z_unit_test.go b/internal/structs/structs_z_unit_test.go index 3a6e3daf0..b37448920 100644 --- a/internal/structs/structs_z_unit_test.go +++ b/internal/structs/structs_z_unit_test.go @@ -110,7 +110,10 @@ func Test_Fields(t *testing.T) { Pass string `my-tag1:"pass1" my-tag2:"pass2" params:"pass"` } var user *User - fields, _ := structs.Fields(user) + fields, _ := structs.Fields(structs.FieldsInput{ + Pointer: user, + RecursiveOption: 0, + }) t.Assert(len(fields), 3) t.Assert(fields[0].Name(), "Id") t.Assert(fields[1].Name(), "Name")