[ https://issues.oasis-open.org/browse/ODATA-919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ralf Handl updated ODATA-919:
-----------------------------
Proposal:
Specify the result type for each operation based on operator types (refine and put in matrix)
a) int* add/mult/sub int* => int64 (may be +/-inf)
b) Int* add/mult/sub decimal/single/double => promotion rules will promote, then type
c) int* div int* => loperand (or larger) -> service can always promote to int64
d) Int* div decimal/single/double => roperand
e) decimal/single/double div number => operation promotes smaller operand; result is that type
f) number divideby number =>decimal
g) Int* mod Int* the type of the loperand (or larger)
h) Int* mod decimal/single/double => roperand (service can promote to decimal)
i) Decimal/single/double mod number => loperand (service can promote to decimal)
j) Single add/mult/sub single -> single
k) Double add/mult/sub Double -> double (note, if either operand is single, gets promoted to double)
l) Don't promote outside of type families
m) Do not promote Single->Double
was:
Specify the result type for each operation based on operator types (refine and put in matrix)
a) int* add/mult/sub int* => int64 (may be +/-inf)
b) Int* add/mult/sub decimal/single/double => promotion rules will promote, then type
c) int* div int* => loperand (or larger) -> service can always promote to int64
d) Int* div decimal/single/double => roperand
e) decimal/single/double div number => operation promotes smaller operand; result is that type
e) number divideby number =>decimal
f) Int* mod Int* the type of the loperand (or larger)
g) Int* mod decimal/single/double => roperand (service can promote to decimal)
h) Decimal/single/double mod number => loperand (service can promote to decimal)
f) Single add/mult/sub single -> single
g) Double add/mult/sub Double -> double (note, if either operand is single, gets promoted to double)
a) Don't promote outside of type families
b) Do not promote Single->Double
> Specify the result type for each operation based on operator types
> ------------------------------------------------------------------
>
> Key: ODATA-919
> URL: https://issues.oasis-open.org/browse/ODATA-919
> Project: OASIS Open Data Protocol (OData) TC
> Issue Type: Improvement
> Components: OData URL Conventions
> Affects Versions: V4.0_OS
> Reporter: Martin Zurmuehl
> Assignee: Evan Ireland
> Fix For: V4.01_WD01
>
>
> See ODATA-785 for a description of the issue --> Comments Section.
--
This message was sent by Atlassian JIRA
(v6.2.2#6258)