Skip to content

Commit 9d3cb59

Browse files
author
James Cor
committed
better context
1 parent e8c7fbe commit 9d3cb59

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sql/procedures/interpreter_logic.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
package procedures
1616

1717
import (
18-
"context"
19-
"errors"
18+
"errors"
2019
"fmt"
2120
"io"
2221
"strconv"
@@ -894,7 +893,7 @@ func Call(ctx *sql.Context, iNode InterpreterNode) (sql.RowIter, *InterpreterSta
894893
break
895894
}
896895

897-
subCtx := sql.NewContext(context.Background())
896+
subCtx := sql.NewContext(ctx.Context)
898897
subCtx.Session = ctx.Session
899898

900899
operation := statements[counter]

0 commit comments

Comments
 (0)