code: func flagsToStatementContext(flags uint64) *stmtctx.StatementContext {
  	sc := new(stmtctx.StatementContext)
  	sc.IgnoreTruncate = (flags & model.FlagIgnoreTruncate) > 0
  	sc.TruncateAsWarning = (flags & model.FlagTruncateAsWarning) > 0
  	sc.PadCharToFullLength = (flags & model.FlagPadCharToFullLength) > 0
  	return sc
  }
docs: // flagsToStatementContext creates a StatementContext from a `tipb.SelectRequest.Flags`.