Cannot use GET with FROM clause within FOREACH [message #810818] |
Thu, 01 March 2012 10:40  |
Eclipse User |
|
|
|
EGL Development Tools
Version: 0.8.0.v201202280901-1Co-FjuJ6QMNSP3ynscd8h8C
DedicatedService
Eclipse 3.7.1
Generation Language: Java, JavaScript
Error:
IWN.VAL.6510.e 36/28
The FOREACH SQL I/O statement does not allow the FROM option to be specified more than once.
...
ds SQLDataSource? {@Resource{uri="binding:SomeValidBinding"}};
...
function ...
rs SQLResultSet?;
open rs from ds using(someParameter) with #sql{
select * from someTable where someField = ?
};
someRecord1 SOMERECORD;
forEach (someRecord1 from rs)
someOtherRecord1 SOMEOTHERRECORD { id=someRecord1.ID };
get someOtherRecord1 from ds; <-- ERROR occurs here
end
end
Is this illegal syntax?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03055 seconds