dialect/sql/sqlgraph: consistent scan names

This commit is contained in:
Ariel Mashraki
2019-12-22 20:12:00 +02:00
parent 6f9dade32c
commit c09028f58b
28 changed files with 32 additions and 32 deletions

View File

@@ -89,7 +89,7 @@ func ({{ $receiver }} *{{ $builder }}) sqlSave(ctx context.Context) ({{ $ret }}
{{- if $one }}
{{ $ret }} = &{{ $.Name }}{config: {{ $receiver }}.config}
spec.Assign = {{ $ret }}.assignValues
spec.ScanTypes = {{ $ret }}.scanValues()
spec.ScanValues = {{ $ret }}.scanValues()
{{- end }}
{{- if $one }}
if err = sqlgraph.UpdateNode(ctx, {{ $receiver }}.driver, spec); err != nil {