Skip to content

Commit

Permalink
bugfix linked objects reference
Browse files Browse the repository at this point in the history
  • Loading branch information
ebirukov committed Mar 7, 2024
1 parent b449160 commit 14eb25c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/pkg/generator/tmpl/tarantool/main.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,7 @@ func selectBox(ctx context.Context, indexnum uint32, keys []interface{}, iterTyp
}

for _, r := range res {
r.BaseField.Objects = map[string][]tarantool.ModelStruct{}
r.BaseField.Exists = true
}

Expand Down Expand Up @@ -876,6 +877,7 @@ func executeSQL(ctx context.Context, sqlText string, args []any) ([]*{{ $PublicS

for _, r := range res {
r.BaseField.Exists = true
r.BaseField.Objects = map[string][]tarantool.ModelStruct{}
}

metricStatCnt.Inc(ctx, "execute_tuples_res", float64(len(res)))
Expand Down

0 comments on commit 14eb25c

Please sign in to comment.