Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360021 - Changes to be made to the SQL access specification attached to 355573
Summary: Changes to be made to the SQL access specification attached to 355573
Status: ASSIGNED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Justin Spadea CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-05 15:06 EDT by Joseph Vincens CLA
Modified: 2017-02-23 14:17 EST (History)
4 users (show)

See Also:


Attachments
EDT Extension_SQLAccess_v032 (190.00 KB, application/msword)
2011-11-09 11:36 EST, Joseph Vincens CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Vincens CLA 2011-10-05 15:06:20 EDT
The following needs to be updated in the spec for SQLDataSource:
function getWarnings() returns(SQLWarning);
It should be:
function getWarnings() returns(SQLWarning?);
Comment 1 Joseph Vincens CLA 2011-10-05 15:06:58 EDT
missing ()
foreach myCust from rs 
should be 
foreach(myCust from rs)
Comment 2 Joseph Vincens CLA 2011-10-05 15:08:08 EDT
example causes compilation error, missing ?.
rs SQLResultSet;
should be
rs SQLResultSet?;
Comment 3 Justin Spadea CLA 2011-10-05 17:58:48 EDT
The following should be added to SQLResultSet:

function getWarnings() returns(SQLWarning?);
Comment 4 Lisa Lasher CLA 2011-10-06 14:53:19 EDT
changing this to an enhancement so that it's not included in the weekly defect count.
Comment 5 Justin Spadea CLA 2011-10-10 11:27:54 EDT
Page 39 the syntax for the open statement begins with "Get_statement ::=" but it should be "Open_statement ::=".
Comment 6 Justin Spadea CLA 2011-10-10 13:46:42 EDT
Page 46:

"The data_source_expr element in the TO clause must be of type eglx.persistence.sql.SQLResultSet"

"TO" should be "FROM"
Comment 7 Joseph Vincens CLA 2011-10-11 11:22:18 EDT
incorporate comments and examples from 360486 and 360487
Comment 8 Justin Spadea CLA 2011-10-11 11:59:55 EDT
The replace statement says the syntax is "update action_target" but it should
read "replace action_target". Page 50/51.
Comment 9 Justin Spadea CLA 2011-10-11 12:50:17 EDT
The spec is missing a section for the Close statement. It's mentioned on page 6 but not further down in the spec where the details for each action statement are explained.
Comment 10 Justin Spadea CLA 2011-10-11 13:34:35 EDT
Follow-up to previous comment: do we even need a close statement? Why not just add a close() function to SQLResultSet and SQLDataSource?
Comment 11 Joseph Vincens CLA 2011-10-11 14:18:01 EDT
incorporate annotation from 360260 into the spec
Comment 12 Justin Spadea CLA 2011-10-12 11:42:40 EDT
The replace and delete statements say the following:
"The action target action_target must be typed to a single valued type"

It should become:
(Replace) "The action target action_target must be a data_expr"
(Delete) "The  action_target if present must be a data_expr"
Comment 13 Justin Spadea CLA 2011-10-12 11:44:13 EDT
The Get statement's target needs to include data_expr:

Get_statement ::=
	get data_expr | action_targets [from  data_source_expr] [using_clause]  [with_clause];
Comment 14 Justin Spadea CLA 2011-10-19 14:49:10 EDT
For GET statements: If the targets are primitives mapping to columns and they do not all map to a single table, then the WITH clause is required.

For ADD statements: If the targets are primitives mapping to columns and they do not all map to a single table, then the FOR clause is required.
Comment 15 Joseph Vincens CLA 2011-10-27 13:00:06 EDT
For the GET action the target fields are populated in the order of the columns in the SELECT clause. This means the SELECT column definition order must match the record field.
Comment 16 Joseph Vincens CLA 2011-10-27 13:02:57 EDT
The GET action default SQL uses an RTRIM(<col name>) for all target fields defined as strings.
Comment 17 Justin Spadea CLA 2011-10-28 10:43:58 EDT
The syntax for the OPEN statement has a duplicate for_clause. It should be:

Open_statement ::= open sql_statement_expr [from data_source_expr] [using_clause] [with_clause | for_clause];
Comment 18 Joseph Vincens CLA 2011-11-09 11:36:30 EST
Created attachment 206713 [details]
EDT Extension_SQLAccess_v032

I have updated and attached the SQL specification based on the comments.
Comment 19 Joseph Vincens CLA 2011-11-09 11:39:30 EST
Could you please review the changes and once everything looks good I'll merge all of the editing changes, check the formating, and attach the new version to 355573.
Once you are done change the status to resolved.
thanks