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

pattern EscapeQuot := ''''; no longer compiles

    XMLWordPrintable

    Details

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

      Description

      Although the code previously compiled it almost certainly isn't what the author intended. Single quotes need to be quoted with \ in a string.

      pattern EscapeQuot := '''';
      

      would have actually been interpreted as

      pattern EscapeQuot := '' '';
      

      i.e

      pattern EscapeQuot := '';
      

      The error message should be improved - there is no warning that the ''' is not correctly terminated.

      This change was caused by

      commit 83cd93006e2a81b0ead9d3a6c764ae2eb4b795a0
      Author: Richard Chapman <rchapman@hpccsystems.com>
      Date:   Tue Jan 24 10:52:50 2017 +0000
      HPCC-16900 Add multi-line string constants to ECL
      

      Also needs to go in the redbook.

      John Holt One example is in xcr_xpathy.path. Is this your code?

        Attachments

          Activity

            People

            • Assignee:
              richardkchapman Richard Chapman
              Reporter:
              ghalliday Gavin Halliday
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: