Ensure SchemaConfig is set in sqlQuery's context (#1203)

This commit is contained in:
Marwan Sulaiman
2021-01-24 08:15:23 -05:00
committed by Ariel Mashraki
parent aeb1ccc571
commit bdd8f2f624
6 changed files with 20 additions and 7 deletions

View File

@@ -130,6 +130,8 @@ func NewSchemaConfigContext(parent context.Context, config SchemaConfig) context
{{- $receiver := receiver $builder }}
{{- if $.FeatureEnabled "sql/schemaconfig" }}
t1.Schema({{ $receiver }}.schemaConfig.{{ $.Name }})
ctx = internal.NewSchemaConfigContext(ctx, {{ $receiver }}.schemaConfig)
selector.WithContext(ctx)
{{- end }}
{{- end -}}