Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-18799

Improve default support for child dataset fields

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0.0
    • Component/s: Code Generator
    • Labels:
      None

      Description

      I was trying to default a child dataset to empty in a record structure.
      My first guess at the syntax was, e.g.:

      ds := RECORD
        string str := 'default';
        DATASET(crec) kids := [];
      END;
      

      Discussed with Gavin Halliday - and DEFAULT was suggested, but I couldn't get that to work in this context, but DATASET(cred) kids := DATASET([], r); did work.

      It would be good to support the abbreviated form using []
      and I think Gavin thought some of the forms with DEFAULT should also have worked.

        Attachments

          Activity

            People

            • Assignee:
              shamser Shamser Ahmed
              Reporter:
              jakesmith Jake Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: