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

Example ECl for #GETDATATYPE in ECL ref manual does not work.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.2.22
    • Fix Version/s: 6.4.x
    • Component/s: Documentation
    • Labels:
      None
    • Environment:
      N/A

      Description

      Cut And paste out example ECL from REF manual and try to use:

      RR := RECORD
         UNSIGNED lexid;
         STRING Name;
         UNSIGNED4 dfs;
         UNSIGNED4 dls;
      END;
      
      #DECLARE(fieldtype);
      #DECLARE(field);
      
      #SET(field, 'RR.lexid');
      
      #SET(fieldtype, #GETDATATYPE(%field%));
      
      export res := %'fieldtype'%;
      res; // Output: res = 'data9'
      

      Generates error:

      Error:    syntax error near "RR" : expected < (14, 33), 3002, 
      

       

        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: