max(r,x) treated as RATIONAL when x is CHAR

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

max(r,x) treated as RATIONAL when x is CHAR

Post by HughDarwen »

I tried comparing MAX(r,x), where x is of type CHAR, with a character string literal. I got a syntax error saying that I was trying to compare a RATIONAL with a CHAR.

Easy test case:

Max(relation{tuple{x 'abc'}},x)
works okay.

Max(relation{tuple{x 'abc'}},x) = 'abc'
gives the error.

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

Re: max(r,x) treated as RATIONAL when x is CHAR

Post by Dave »

I have fixed this for version 0.3.5, which will be released in a few days.
Post Reply