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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: Front End, General
    • Labels:
      None

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

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

                    Tasks