Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324375

Summary: Unable to run with comparasion to integers less than INTEGER.MAXVALUE
Product: [Modeling] EMF Reporter: Ashwani Kr Sharma <ashw.kumar>
Component: Query2Assignee: Project Inbox <emf.query2-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Creating WhereInt for values less than Integer.MAX
none
Patch for updated version of QueryTransformer wayne.beaton: iplog+

Description Ashwani Kr Sharma CLA 2010-09-03 01:09:19 EDT
Build Identifier: 

Query like following throws errors and does not run:
from Manuscript as m select m.format where m.pages >=200

Reproducible: Always

Steps to Reproduce:
Open the Demo Query Editor. Run the query:
from Manuscript as m select m.format where m.pages >=200

It does not fetch any result
Comment 1 Ashwani Kr Sharma CLA 2010-09-03 01:17:56 EDT
Created attachment 178118 [details]
Creating WhereInt for values less than Integer.MAX

If the values compared is more than Integer.MAX WhereLong is created else WhereInt is created
Comment 2 Bernd Kolb CLA 2010-09-07 06:12:32 EDT
We missed that, indeed

Patch applied
Bernd
Comment 3 Bernd Kolb CLA 2010-09-07 06:14:44 EDT
I have difficulties committing the fix due to some CVS issue. I have to ask the webmaster. --> Reopened until the CVS issue is fixed
Comment 4 Bernd Kolb CLA 2010-09-08 06:41:03 EDT
Can you please attach a patch to fix it in the new version?

Thx
Bernd
Comment 5 Ashwani Kr Sharma CLA 2010-09-08 08:05:55 EDT
Created attachment 178389 [details]
Patch for updated version of QueryTransformer
Comment 6 Bernd Kolb CLA 2010-09-08 08:50:28 EDT
Fixed