Bug 780268 (SOA-2666) - NOT isn't handled properly
Summary: NOT isn't handled properly
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-2666
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: EDS
Version: 5.1.0.ER5
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.1.0.CR1
Assignee: Van Halbert
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-09 22:05 UTC by Steven Hawkins
Modified: 2011-02-08 16:53 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-08 16:53:38 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker MODE-1052 0 None None None Never
Red Hat Issue Tracker SOA-2666 0 None None None Never

Description Steven Hawkins 2010-12-09 22:05:30 UTC
project_key: SOA

A ModeShape JCR SQL Query such as: SELECT g_0."jcr:name", g_0."jcr:path", g_0."jcr:primaryType", g_0."jcr:score", g_0."mode:depth", g_0."mode:localName" FROM "nt:base" AS g_0 WHERE ISCHILDNODE(g_0, 'foo')
that returns a subset of the rows, will return no rows when the condition is negated with a NOT.

Comment 1 Van Halbert 2010-12-09 22:57:10 UTC
Steve, can I get the actual query that you submitted with the NOT condition?

Comment 2 Steven Hawkins 2010-12-10 01:33:01 UTC
The translated query with not is:

SELECT g_0."jcr:name", g_0."jcr:path", g_0."jcr:primaryType", g_0."jcr:score", g_0."mode:depth", g_0."mode:localName" FROM "nt:base" AS g_0 WHERE NOT ISCHILDNODE(g_0, 'foo') 

submitted through Teiid as:

SELECT * from nt_base WHERE NOT JCR_ISCHILDNODE(nt_base.jcr_path, 'foo')

Comment 3 Van Halbert 2010-12-13 14:16:10 UTC
Link: Added: This issue Cloned to SOA-2675


Comment 4 Anne-Louise Tangring 2010-12-14 19:02:16 UTC
This will be investigated for SOA 5.1.0. Depending on severity of issue, we may or may not decide to fix it in SOA 5.1.0

Comment 7 Paul Nittel 2011-02-08 16:53:38 UTC
Tested with ER9 and closed.


Note You need to log in before you can comment on or make changes to this bug.