Type resolution for operators - Mailing list pgsql-hackers

From Thomas Lockhart
Subject Type resolution for operators
Date
Msg-id 3A0838CF.9B8B33F2@alumni.caltech.edu
Whole thread Raw
Responses Re: Type resolution for operators  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
I've committed changes to parse_oper.c to enable fallback to string type
when argument(s) are of UNKNOWN type. This is the same code (verbatim)
as I recently added for function resolution.

An obvious example is for
 select '1' = '01';

which used to throw an error and which now resolves to two text strings
(and returns 'false'). To force these to be handled as integers, prefix
one with the "int" type specifier:
 select int '1' = '01';

which, btw, returns 'true'.

Regression tests pass without change (which I guess means that we don't
have good coverage there, either :/
                     - Thomas


pgsql-hackers by date:

Previous
From: Thomas Lockhart
Date:
Subject: Committed patches; initdb required
Next
From: Thomas Lockhart
Date:
Subject: Re: Horology regress test changed?