[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] Updated: (ODATA-401) Replace "substringof" canonical function with "contains"
[ http://tools.oasis-open.org/issues/browse/ODATA-401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ralf Handl updated ODATA-401: ----------------------------- Proposal: Replace "substringof" canonical function with "contains". The first parameter being the sourcestring, and the second being the searchtext. Accepted: https://www.oasis-open.org/committees/download.php/49325/odata-meeting-38_on-20130523-minutes.html#odata-401 was:Replace "substringof" canonical function with "contains". The first parameter being the sourcestring, and the second being the searchtext. > Replace "substringof" canonical function with "contains" > -------------------------------------------------------- > > Key: ODATA-401 > URL: http://tools.oasis-open.org/issues/browse/ODATA-401 > Project: OASIS Open Data Protocol (OData) TC > Issue Type: Improvement > Components: OData ABNF Construction Rules, OData Protocol , OData URL Conventions > Affects Versions: V4.0_CSD01 > Environment: [Proposed] > Reporter: Michael Pizzo > Fix For: V4.0_CSD02 > > > The current definition of substringof takes first the string being searched for, and second the string being searched in. > This is widely held to be the wrong order, especially since other string functions generally take the string as the first argument. > This issue has long been a source of confusion in OData, made worse by the fact that the documentation often disagreed with the examples, and the documentation has changed several times. > To prevent any confusion with legacy, I propose we retire the "substringof" function all together and replace it with "contains" with the argument in the more intuitive order (sourcestring, searchtext) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]