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

#EXPORT not exporting record structure correctly. Where RECORD names have trailing numbers.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.4.14
    • Fix Version/s: 7.2.0
    • Component/s: Code Generator
    • Labels:
      None
    • Environment:
      N/A

      Description

      Where a name of a RECORD structure has trailing numbers the 'type' attribute of the exported XML is incorrect (these numbers are stripped off.

       

      Problem ECL exported XML
      R123456789 := RECORD
           UNSIGNED1 u1;
      END;
      R2 := RECORD
          R123456789 InnerR1;
      END;
      #DECLARE(xmlOfRecord)
      #EXPORT(xmlOfRecord,R2)
      %'xmlOfRecord'%;
      <Data>
      <Field ecltype="r123456789"
          isRecord="1"
          label="innerr1"
          name="innerr1"
          position="0"
          rawtype="13"
          size="1"
          type="r"/>
      <Field ecltype="unsigned1"
          label="u1" 
          name="u1"
          position="1"
          rawtype="65793"
          size="1"
          type="unsigned"/>
      <Field isEnd="1" name="innerr1"/>
      </Data>
      OK ECL Exported XML correct
      Rabcdef := RECORD
         UNSIGNED1 u1;
      END;
      R2 := RECORD
          Rabcdef InnerR1;
      END;
      #DECLARE(xmlOfRecord)
      #EXPORT(xmlOfRecord,R2)
      %'xmlOfRecord'%;
      <Data>
      <Field ecltype="rabcdef"
                 isRecord="1"
                 label="innerr1"
                 name="innerr1"
                 position="0"
                 rawtype="13"
                 size="1"
                  type="rabcdef"/>
      <Field ecltype="unsigned1"
                 label="u1"
                 name="u1"
                 position="1"
                 rawtype="65793"
                 size="1"
                 type="unsigned"/>
      <Field isEnd="1" name="innerr1"/>
      </Data>

       

        Attachments

          Activity

            People

            • Assignee:
              ghalliday Gavin Halliday
              Reporter:
              allan Allan Francis Wrobel
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: