Skip to content

Commit

Permalink
fix: should restore xid hint (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
dk-lockdown committed Aug 9, 2022
1 parent 12c94c4 commit 66137ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions third_party/parser/ast/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3439,6 +3439,8 @@ func (n *TableOptimizerHint) Restore(ctx *format.RestoreCtx) error {
ctx.WriteString(hintData.VarName)
ctx.WritePlain(", ")
ctx.WriteString(hintData.Value)
case "xid":
ctx.WriteString(n.HintData.(model.CIStr).String())
}
ctx.WritePlain(")")
return nil
Expand Down

0 comments on commit 66137ba

Please sign in to comment.