Skip to content

Commit

Permalink
Merge pull request #86885 from rafiss/backport22.1-86607
Browse files Browse the repository at this point in the history
  • Loading branch information
rafiss authored Aug 26, 2022
2 parents ec7de3c + 958ea0c commit 9afc3fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sql/conn_executor_exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ func formatWithPlaceholders(ast tree.Statement, evalCtx *tree.EvalContext) strin
fmtFlags,
tree.FmtPlaceholderFormat(func(ctx *tree.FmtCtx, placeholder *tree.Placeholder) {
d, err := placeholder.Eval(evalCtx)
if err != nil {
if err != nil || d == nil {
// Fall back to the default behavior if something goes wrong.
ctx.Printf("$%d", placeholder.Idx+1)
return
Expand Down

0 comments on commit 9afc3fe

Please sign in to comment.