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=48440#comment-48440 ] 

Michael Pizzo commented on ODATA-739:
-------------------------------------

The problem with default values for functions is that it messes up function overloading rules. How do I know if I'm calling the overload with all of the parameters, but using default values, or if I'm calling the overload that has only a subset of parameters defined. Because the routing may occur very early in the pipeline, having simple, deterministic semantics is important.

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