You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Alex Parvulescu (JIRA)" <ji...@apache.org> on 2012/11/26 10:24:58 UTC

[jira] [Commented] (OAK-323) Column names aren't reported properly for "select * from [nodeType]" queries

    [ https://issues.apache.org/jira/browse/OAK-323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503689#comment-13503689 ] 

Alex Parvulescu commented on OAK-323:
-------------------------------------

This also affects the tck test {{org.apache.jackrabbit.test.api.query.qom.ColumnTest#testExpandColumnsForNodeType}}
                
> Column names aren't reported properly for "select * from [nodeType]" queries
> ----------------------------------------------------------------------------
>
>                 Key: OAK-323
>                 URL: https://issues.apache.org/jira/browse/OAK-323
>             Project: Jackrabbit Oak
>          Issue Type: Sub-task
>          Components: jcr
>            Reporter: Alex Parvulescu
>
> Test class: SQL2QueryResultTest, query:
> {code}
> select * from [test:RTypeTest]
> {code}
> It appears that the query.getColumns only has one entry [[test:RTypeTest].*] which outputs null on #getColumnName instead of unfolding the 3 properties that the node has.
> Trace:
> {noformat}
> junit.framework.AssertionFailedError: Got more columns than expected: [null] expected:<3> but was:<1>
> {noformat}

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