[teiid-issues] [JBoss JIRA] (TEIID-2580) xsi:nil is not honored by xmltable

Steven Hawkins (JIRA) jira-events at lists.jboss.org
Tue Jul 16 11:24:25 EDT 2013


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

Steven Hawkins commented on TEIID-2580:
---------------------------------------

Expanded the change to include xpathValue as well.
                
> xsi:nil is not honored by xmltable
> ----------------------------------
>
>                 Key: TEIID-2580
>                 URL: https://issues.jboss.org/browse/TEIID-2580
>             Project: Teiid
>          Issue Type: Bug
>          Components: Query Engine
>    Affects Versions: 7.7
>            Reporter: Steven Hawkins
>            Assignee: Steven Hawkins
>             Fix For: 8.4.1, 8.5
>
>
> If an element is returnable by xmltable, but marked as nil more than likely an exception will be produced when attempting to convert the empty string value to a result.
> For example:
> {code}
> select * from xmltable('/a/b' passing convert('<a xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><b xsi:nil="true"/><b>1</b></a>', xml) columns val integer path '.') as x
> {code}
> will error converting the first b element to an integer.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the teiid-issues mailing list