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

Ref Manual Example for '#GETDATATYPE' does not compile.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.4.6
    • Fix Version/s: 6.4.0
    • Component/s: Code Generator
    • Labels:
      None
    • Environment:
      Any

      Description

      I cut the example from page 370 of the ECL Reference Manual 2016 Version 5.4.8-1

      Added the required record type, but the example fails with:

      Error: syntax error near "person" : expected < (10, 32), 3002,

      the code is:

      person := RECORD
      DATA9 per_cid;
      END;

      #DECLARE(fieldtype);
      #DECLARE(field);

      #SET(field, 'person.per_cid');

      #SET(fieldtype, #GETDATATYPE(%field%));

      export res := %'fieldtype'%;
      res; // Output: res = 'data9'

        Attachments

          Activity

            People

            • Assignee:
              jamesdefabia Jim DeFabia
              Reporter:
              allan Allan Francis Wrobel
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: