pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #5799: failed to find conversion function from unknown to text
2+ messages / 2 participants
[nested] [flat]
* BUG #5799: failed to find conversion function from unknown to text
@ 2010-12-21 10:08 Sandro Santilli <strk@keybit.net>
0 siblings, 1 reply; 2+ messages in thread
From: Sandro Santilli @ 2010-12-21 10:08 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged online:
Bug reference: 5799
Logged by: Sandro Santilli
Email address: strk@keybit.net
PostgreSQL version: 8.4.3
Operating system: GNU/Linux 64bit
Description: failed to find conversion function from unknown to text
Details:
Function definition:
CREATE OR REPLACE FUNCTION ST_RelateMatch(text, text)
RETURNS bool
AS '$libdir/postgis-2.0', 'ST_RelateMatch'
LANGUAGE 'C' IMMUTABLE STRICT
COST 100;
Function invocation:
SELECT a, b, ST_RelateMatch(a,b) FROM
( SELECT '101202FFF' as a, 'TTTTTTFFF' as b) as f;
Results in:
ERROR: failed to find conversion function from unknown to text
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #5799: failed to find conversion function from unknown to text
@ 2010-12-21 14:42 Tom Lane <tgl@sss.pgh.pa.us>
parent: Sandro Santilli <strk@keybit.net>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2010-12-21 14:42 UTC (permalink / raw)
To: Sandro Santilli <strk@keybit.net>; +Cc: pgsql-bugs
"Sandro Santilli" <strk@keybit.net> writes:
> SELECT a, b, ST_RelateMatch(a,b) FROM
> ( SELECT '101202FFF' as a, 'TTTTTTFFF' as b) as f;
> Results in:
> ERROR: failed to find conversion function from unknown to text
Cast those unknown literals to text explicitly, ie
SELECT a, b, ST_RelateMatch(a,b) FROM
( SELECT '101202FFF'::text as a, 'TTTTTTFFF'::text as b) as f;
We don't support doing it the other way because retroactively deciding
at the top level that the sub-select's outputs should have been text
might change the semantics of the sub-select (consider cases involving
DISTINCT for example).
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2010-12-21 14:42 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-12-21 10:08 BUG #5799: failed to find conversion function from unknown to text Sandro Santilli <strk@keybit.net>
2010-12-21 14:42 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox