Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363028 - Get data values as a Dictionary could not be compiled in EDT
Summary: Get data values as a Dictionary could not be compiled in EDT
Status: CLOSED INVALID
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: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-07 04:05 EST by Thomas Wu CLA
Modified: 2017-02-23 14:18 EST (History)
1 user (show)

See Also:


Attachments
compiling error (72.16 KB, image/pjpeg)
2011-11-07 04:07 EST, Thomas Wu CLA
no flags Details
Tim's Doc (159.50 KB, application/octet-stream)
2011-11-07 04:09 EST, Thomas Wu CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wu CLA 2011-11-07 04:05:52 EST
Build Identifier: 20111106

Refered to Scenario B in Tim's document EDT Extension_SQLAccess_v031.doc, I tried to get data as a Dictionary from DB. But there is a compiling error in EDT.

Reproducible: Always

Steps to Reproduce:
1.Create a Derby connection in EDT to link the DB EGLDerbyR7.
2.Create a basic program.
3.Wirte the following code in the basic program.

program testDic type BasicProgram {}
	
	ds SQLDataSource = new SQLDataSource("jdbc:derby:C:/databases/EGLDerbyR7;create=true");
	customerDic Dictionary {@table{name = "EGL.CUSTOMER"}};
	
	function main()
		get customerDic from ds using(customerDic.CUSTOMER_ID) with
			#sql{
				select
					*
				from EGL.CUSTOMER
				where
					CUSTOMER_ID = ?
			};
		syslib.writeStdout("Done!");
	end
	
end

Actual results: There is one compiling error in the line of get customerDic ... Please refer to screenshot and Tim's doc.
Comment 1 Thomas Wu CLA 2011-11-07 04:07:53 EST
Created attachment 206509 [details]
compiling error
Comment 2 Thomas Wu CLA 2011-11-07 04:09:16 EST
Created attachment 206510 [details]
Tim's Doc
Comment 3 Justin Spadea CLA 2011-11-07 09:00:33 EST
Not all of the spec is supported in 0.7. Dictionaries, for example, are not supported. Association Expressions are also not supported. This is work to be done for 1.0.
Comment 4 Thomas Wu CLA 2011-11-07 09:18:16 EST
Hi, Justin. Where could I get a summary for what 0.7 supports and what 0.7 not supports? It seems I could not based on the Tim's doc totally.
Comment 5 Justin Spadea CLA 2011-11-07 09:21:36 EST
I don't think there's a list anywhere. Usually what happens is a defect gets opened on generation, Joe says "that's not supported in 0.7" and (temporary) validation gets added to prevent generation from throwing an error.

Dictionary and association expressions are the main ones. Go ahead and open bugs if you're not sure, and we'll close them if it's intentional for 0.7.
Comment 6 Thomas Wu CLA 2011-11-10 20:07:14 EST
This is not supported in 0.7, close it now.