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 "Jukka Zitting (JIRA)" <ji...@apache.org> on 2013/04/12 18:58:16 UTC
[jira] [Resolved] (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:all-tabpanel ]
Jukka Zitting resolved OAK-323.
-------------------------------
Resolution: Fixed
Fix Version/s: 0.7
Assignee: Jukka Zitting
Fixed in http://svn.apache.org/r1467342 by hooking node type information into the query parser.
> 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
> Assignee: Jukka Zitting
> Fix For: 0.7
>
>
> 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