[teiid-issues] [JBoss JIRA] (TEIID-5278) Wrong indexing with SUBSTRING function and OData4 translator
Steven Hawkins (JIRA)
issues at jboss.org
Mon Mar 12 12:55:01 EDT 2018
[ https://issues.jboss.org/browse/TEIID-5278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on TEIID-5278 started by Steven Hawkins.
---------------------------------------------
> Wrong indexing with SUBSTRING function and OData4 translator
> ------------------------------------------------------------
>
> Key: TEIID-5278
> URL: https://issues.jboss.org/browse/TEIID-5278
> Project: Teiid
> Issue Type: Bug
> Components: OData
> Affects Versions: 8.12.11.6_4
> Reporter: Jan Martiska
> Assignee: Steven Hawkins
>
> SQL {{SUBSTRING}} function indexes strings from 1, but OData {{substring}} filtering function indexes from zero. This needs to be taken into account.
> Currently a query containing {{WHERE SUBSTRING(stringkey, 1, 1) = 'x'}} will return items where the second character is x, but it should return rows where the first character is x.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the teiid-issues
mailing list