OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

odata message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] (ODATA-791) 11.2.5.2 System Query Option $orderby: specify order of Edm.Boolean and Edm.Geo


    [ https://issues.oasis-open.org/browse/ODATA-791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59284#comment-59284 ] 

Matthew Borges commented on ODATA-791:
--------------------------------------

- Java does not allow comparing the built in true and false primitives or variables of type boolean.  If you use the Boolean wrapper classes and the compareTo method, false is less than true.
- C++ does allow comparing true and false primitives (I only tried with Microsoft's compiler and clang++).  In both cases, false is less than true
- In C, (which was mentioned in the meeting today) 0 is false and all other numbers are true.  So -1 and 1 are both true.  There isn't a false < true or true > false relationship.
- Python allows comparing True and False primitives; False is less than True.

> 11.2.5.2 System Query Option $orderby: specify order of Edm.Boolean and Edm.Geo
> -------------------------------------------------------------------------------
>
>                 Key: ODATA-791
>                 URL: https://issues.oasis-open.org/browse/ODATA-791
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Improvement
>          Components: OData Protocol
>    Affects Versions: V4.0_ERRATA02
>         Environment: [Proposed]
>            Reporter: Ralf Handl
>             Fix For: V4.0_ERRATA03
>
>
> We allow ordering by primitive values, and don't tell how true and false are ordered. We also don't explicitly exclude Edm.Geo and Edm.Stream.



--
This message was sent by Atlassian JIRA
(v6.2.2#6258)


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]