Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363382 - SQL - red tag on CNTL-1 default statements for records with more than one key
Summary: SQL - red tag on CNTL-1 default statements for records with more than one key
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Zhi Zhu CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-09 15:48 EST by Paul Hoffman CLA
Modified: 2017-02-23 14:16 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Hoffman CLA 2011-11-09 15:48:05 EST
If a record or entity as more than one field with the @ID annotation, CNTL-1 put parentheses around the list of fields.   The parentheses should not be there and get a red tag.

Here is an example of a statement created for delete mypayment from ds :


get myPayment from ds  using(myPayment.Payment_ID, myPayment.category) with
	   	#sql{
	   		select
	   			Payment_ID, category, rtrim(description), Amount, 
	   			Due_Date
	   		from Payment
	   		where
	   			Payment_ID = ?
	   				and category = ?
	   	};

Generated statement should be:

get myPayment from ds  using myPayment.Payment_ID, myPayment.category  with
	   	#sql{
	   		select
	   			Payment_ID, category, rtrim(description), Amount, 
	   			Due_Date
	   		from Payment
	   		where
	   			Payment_ID = ?
	   				and category = ?
	   	};
Comment 1 Zhi Zhu CLA 2011-11-09 21:33:10 EST
use 'Space' as separator, not using right/left parenthesis any more
Comment 2 Paul Hoffman CLA 2011-11-14 08:43:41 EST
Verified and closed