Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-1719

Expressions - literal 0 (zero) should convert to unsignedByte without an SDE

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0.0
    • None
    • Front End, General
    • None

      In the expression

      <xs:element name="bar" type="xs:unsignedByte" ....
      dfdl:occursCount="{ if (fn:exists(../foo[1])) then ../foo[1]/count else 0 }"/>

      Currently get an SDE complaining that 0 is of type int, which is incompable with xs:unsignedByte.

      This is wrong. A literal should convert implicitly so long as it is in range.

              dthompson David Thompson
              mbeckerle.dfdl Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 5 minutes
                  5m