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 »

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: 124
Joined: Sat May 24, 2008 4:49 pm

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

Post by HughDarwen »

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

Hugh Darwen
Dave
Site Admin
Posts: 372
Joined: Sun Nov 27, 2005 7:19 pm

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

Post by Dave »

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