From 1390c565010000b538d539d085c12b962c68d70c Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Sat, 17 Apr 2021 15:02:03 +0100 Subject: [PATCH] Ensure query params defined on a connection are available on the socket --- db/socket.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/socket.go b/db/socket.go index d0e45fc3..529d746f 100644 --- a/db/socket.go +++ b/db/socket.go @@ -114,8 +114,9 @@ func (s *socket) ctx() (ctx context.Context) { ctx = context.Background() auth := s.fibre.Get(ctxKeyAuth).(*cnf.Auth) + sess := s.fibre.Get(ctxKeyVars).(map[string]interface{}) - vars := data.New() + vars := data.Consume(sess) vars.Set(ENV, varKeyEnv) vars.Set(auth.Data, varKeyAuth) vars.Set(auth.Scope, varKeyScope)