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

Bug 362549

Summary: Generated SQL statement for open rs from ds for aCust using(aCust.CUSTOMER_ID) is not correct
Product: z_Archived Reporter: Zhi Zhu <zhuzhi>
Component: EDTAssignee: Joseph Vincens <jvincens>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jspadea, pharmon, yuhaodl
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Zhi Zhu CLA 2011-11-01 04:36:24 EDT
The generated SQW for statement:
   open rs from ds for aCust using(aCust.CUSTOMER_ID);

is:
   SELECT CUSTOMER_ID, RTRIM(FIRST_NAME), RTRIM(LAST_NAME), RTRIM(PASSWORD), RTRIM(PHONE), RTRIM(EMAIL_ADDRESS), RTRIM(STREET), RTRIM(APARTMENT), RTRIM(CITY), RTRIM(STATE), RTRIM(POSTALCODE), RTRIM(DIRECTIONS) FROM CUSTOMER"

aCust definition:
record CUSTOMER type Entity{@table{name = "CUSTOMER"}}
    CUSTOMER_ID int{@id};
    FIRST_NAME string?;
    LAST_NAME string?;
    PASSWORD string?;
    PHONE string?;
    EMAIL_ADDRESS string?;
    STREET string?;
    APARTMENT string?;
    CITY string?;
    STATE string?;
    POSTALCODE string?;
    DIRECTIONS string?;
end

no where clause in this case
Comment 1 Joseph Vincens CLA 2011-11-04 15:11:40 EDT
fixed
Comment 2 Zhi Zhu CLA 2011-11-08 01:38:08 EST
close it