code: func statementContextToFlags(sc *stmtctx.StatementContext) uint64 {
  	var flags uint64
  	if sc.InInsertStmt {
  		flags |= model.FlagInInsertStmt
  	} else if sc.InUpdateStmt || sc.InDeleteStmt {
  		flags |= model.FlagInUpdateOrDeleteStmt
  	} else if sc.InSelectStmt {
  		flags |= model.FlagInSelectStmt
  	}
  	if sc.IgnoreTruncate {
  		flags |= model.FlagIgnoreTruncate
  	} else if sc.TruncateAsWarning {
  		flags |= model.FlagTruncateAsWarning
  	}
  	if sc.OverflowAsWarning {
  		flags |= model.FlagOverflowAsWarning
  	}
  	if sc.IgnoreZeroInDate {
  		flags |= model.FlagIgnoreZeroInDate
  	}
  	if sc.DividedByZeroAsWarning {
  		flags |= model.FlagDividedByZeroAsWarning
  	}
  	if sc.PadCharToFullLength {
  		flags |= model.FlagPadCharToFullLength
  	}
  	return flags
  }
docs: // statementContextToFlags converts StatementContext to tipb.SelectRequest.Flags.