From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | PostgreSQL Development <pgsql-hackers(at)postgreSQL(dot)org> |
Subject: | Re: Re: Use int8 for int4/int2 aggregate accumulators? |
Date: | 2001-08-14 20:48:44 |
Message-ID: | Pine.LNX.4.30.0108142246370.677-100000@peter.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Tom Lane writes:
> We could try to force-convert the result of an SQL function to the right
> thing, I suppose, but I'm worried that that might mask programmer errors
> more than it helps.
What I had in mind was to allow type conversion between the same
TypeCategory(). The SQL function analyzer is extraordinarily picky:
create function test(int) returns varchar as '
select substring(''PostgreSQL'' from $1);
' language sql;
ERROR: return type mismatch in function: declared to return character
varying, returns text
--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter
From | Date | Subject | |
---|---|---|---|
Next Message | Gregory Wood | 2001-08-14 20:54:11 | Re: cmd-line interface |
Previous Message | Blue Berry | 2001-08-14 20:38:03 | Probably an old bug, but here you go anyway... |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-08-14 21:05:16 | Re: Re: Use int8 for int4/int2 aggregate accumulators? |
Previous Message | Steve Howe | 2001-08-14 20:25:43 | Retriving users from group ?... |