entc/gen: fix uuid fks scanning (#382)

Fixes #363
This commit is contained in:
Ariel Mashraki
2020-03-07 22:11:25 +02:00
committed by GitHub
parent 7114543a08
commit 2a7183eb82
13 changed files with 779 additions and 20 deletions

View File

@@ -328,6 +328,6 @@ func ({{ $receiver }} *{{ $builder }}) sqlQuery() *sql.Selector {
{{- else if hasPrefix $nulltype "sql" -}}
{{ $field.NullTypeField $arg -}}
{{- else -}}
{{ $arg }}
{{ if not $field.Nillable }}*{{ end }}{{ $arg }}
{{- end }}
{{- end }}