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-739) Allow default values for function and action parameters


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

Ralf Handl commented on ODATA-739:
----------------------------------

We could add a special symbol that can be used in URLs to "provide" the default value:

GET RevenueForecast(Year=$default,Currency=$default)
GET Companies(42)/RevenueForecast(Year=$default,Currency=$default)


This would allow to uniquely identify the overload based on function name, binding parameter type, and non-binding parameter names.


> Allow default values for function and action parameters
> -------------------------------------------------------
>
>                 Key: ODATA-739
>                 URL: https://issues.oasis-open.org/browse/ODATA-739
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: New Feature
>          Components: OData CSDL
>    Affects Versions: V4.0_OS
>            Reporter: Matthew Borges
>            Priority: Minor
>             Fix For: V4.1_WD01
>
>
> In SQL, function and stored procedure parameters can have default values (used when no value is specified for the parameter).  We should consider allowing action and function parameters to have default values as well.



--
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]