[teiid-issues] [JBoss JIRA] (TEIID-3805) HANA SUBSTRING function inconsistent with teiid behaviour

RH Bugzilla Integration (JIRA) issues at jboss.org
Mon Nov 23 11:05:00 EST 2015


    [ https://issues.jboss.org/browse/TEIID-3805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13132790#comment-13132790 ] 

RH Bugzilla Integration commented on TEIID-3805:
------------------------------------------------

Debi Rieden <drieden at redhat.com> changed the Status of [bug 1278464|https://bugzilla.redhat.com/show_bug.cgi?id=1278464] from NEW to CLOSED

> HANA SUBSTRING function inconsistent with teiid behaviour
> ---------------------------------------------------------
>
>                 Key: TEIID-3805
>                 URL: https://issues.jboss.org/browse/TEIID-3805
>             Project: Teiid
>          Issue Type: Bug
>          Components: Misc. Connectors
>    Affects Versions: 8.7.1.6_2
>            Reporter: Jan Stastny
>            Assignee: Steven Hawkins
>
> When querying HANA using hana translator, there is an inconsistency in handling SUBSTRING with similar parameters:
> {code:sql}
> SELECT SUBSTRING('sth',20,1) FROM tablename
> {code}
> That is, when the starting offset supplied to SUBSTRING function is greater than the length of the string value, Teiid returns NULL in this case. 
> But when I run:
> {code:sql}
> SELECT SUBSTRING(STRINGNUM,20,1) FROM bqt1.smalla
> {code}
> (it is pushed to HANA and STRINGNUM column contains strings of length <=2)
> I get empty strings instead of NULL values, which is default in Teiid.
> This inconsistency is caused by different handling of such situation on HANA's side.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the teiid-issues mailing list