Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362549 - Generated SQL statement for open rs from ds for aCust using(aCust.CUSTOMER_ID) is not correct
Summary: Generated SQL statement for open rs from ds for aCust using(aCust.CUSTOMER_ID...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Joseph Vincens CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-01 04:36 EDT by Zhi Zhu CLA
Modified: 2017-02-23 14:14 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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