Skip to content

Commit

Permalink
tiny change
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Yu <jackysp@gmail.com>
  • Loading branch information
jackysp committed Sep 11, 2023
1 parent 974d0b1 commit ef1f69b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/hint/hint_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,8 @@ func (p *BlockHintProcessor) GetCurrentStmtHints(hints []*ast.TableOptimizerHint
}
offset := p.GetHintOffset(hint.QBName, currentOffset)
if offset < 0 || !p.checkTableQBName(hint.Tables) {
hintStr := RestoreTableOptimizerHint(hint)
if p.Ctx != nil {
hintStr := RestoreTableOptimizerHint(hint)
p.Ctx.GetSessionVars().StmtCtx.AppendWarning(fmt.Errorf("Hint %s is ignored due to unknown query block name", hintStr))
}
continue
Expand Down

0 comments on commit ef1f69b

Please sign in to comment.