Can't reference an array element.

This forum is to report technical problems with Rel.
Post Reply
HughDarwen
Posts: 125
Joined: Sat May 24, 2008 4:49 pm

Can't reference an array element.

Post by HughDarwen »

The following statement uses relvar reading from my electricity database:
begin;
var t array tuple same_heading_as(reading);
load t from reading order(desc Year, desc Month#);
output t(1);
end;

The output statement gives a syntax error say the operator(integer) doesn't exist, but it conforms to this BNF:

<tuple nonwith exp>
::= <tuple var ref>
| <tuple op inv>
| <array var ref> ( <subscript> )
| ( <tuple exp> )
Post Reply