MAX and MIN don't work when subtype of INTEGER defined

This forum is to report technical problems with Rel.
Post Reply
AndrewWarden
Posts:1
Joined:Mon Oct 10, 2011 4:58 pm
MAX and MIN don't work when subtype of INTEGER defined

Post by AndrewWarden » Tue Oct 11, 2011 3:13 pm

Using version 1.06 beta I got the following result on a brand new database (note how MAX works correctly before the type definition, fails after it):

max(rel{tup{x 1},tup{x 2}},x)
2

TYPE POSINT IS { INTEGER CONSTRAINT INTEGER > 0 };

Ok.

max(rel{tup{x 1},tup{x 2}},x)

ERROR: No run-time invocation targets found for MAX(RELATION {x INTEGER, %attributeName1 INTEGER}, POSINT)

Line 1, column 28 near 'x'

Hugh Darwen

HughDarwen
Posts:121
Joined:Sat May 24, 2008 4:49 pm

Re: MAX and MIN don't work when subtype of INTEGER defined

Post by HughDarwen » Tue Oct 11, 2011 4:25 pm

I can confirm that the same error doesn't arise on version 1.05 beta.

Hugh Darwen

Dave
Site Admin
Posts:368
Joined:Sun Nov 27, 2005 7:19 pm

Re: MAX and MIN don't work when subtype of INTEGER defined

Post by Dave » Wed Oct 12, 2011 2:54 pm

I've fixed this in version 1.07, to be released shortly.

Post Reply