Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-235

Limit primitive types allowed as key parts to the "sufficiently discrete" types

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_WD01
    • Fix Version/s: V4.0_WD01
    • Component/s: CSDL XML
    • Labels:
      None
    • Environment:

      [Proposed]

      Description

      Currently there's no restriction on which primitive types can be used for key properties; yet Edm.Stream doesn't really make sense, Edm.Binary is dubious, and Edm.Double, Edm.Single, and the Edm.Geo types are problematic when used in keys.

        Attachments

          Activity

          ralfhandl Ralf Handl created issue -
          ralfhandl Ralf Handl made changes -
          Field Original Value New Value
          Proposal Restrict the allowed types for key properties in section 7.2.1 to:
          Edm.Boolean
          Edm.Byte
          Edm.Date
          Edm.DateTimeOffset
          Edm.Decimal
          Edm.Duration
          Edm.Guid
          Edm.Int16
          Edm.Int32
          Edm.Int64
          Edm.SByte
          Edm.String
          Edm.TimeOfDay

          Which means that the following are excluded:
          Edm.Binary
          Edm.Double
          Edm.Geo*
          Edm.Single
          Edm.Stream
          Restrict the allowed types for key properties in section 7.2.1 to:
          Edm.Boolean
          Edm.Byte
          Edm.Date
          Edm.DateTimeOffset
          Edm.Decimal
          Edm.Duration
          Edm.GeographyPoint
          Edm.GeometryPoint
          Edm.Guid
          Edm.Int16
          Edm.Int32
          Edm.Int64
          Edm.SByte
          Edm.String
          Edm.TimeOfDay

          Which means that the following are excluded:
          Edm.Binary
          Edm.Double
          Edm.Geo*
          Edm.Single
          Edm.Stream

          Accepted: https://www.oasis-open.org/committees/download.php/48174/odata-meeting-24_on-20130207-minutes.html#odata-235
          Status New [ 10000 ] Open [ 1 ]
          ralfhandl Ralf Handl made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          ralfhandl Ralf Handl made changes -
          Assignee Ralf Handl [ ralfhandl ]
          ralfhandl Ralf Handl made changes -
          handl Ralf Handl made changes -
          Reporter Ralf Handl [ ralfhandl ] Ralf Handl [ handl ]
          handl Ralf Handl made changes -
          Assignee Ralf Handl [ ralfhandl ] Ralf Handl [ handl ]

            People

            • Assignee:
              handl Ralf Handl
              Reporter:
              handl Ralf Handl
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: