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 14:57:52 |
Message-ID: | Pine.LNX.4.30.0108141656560.677-100000@peter.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Tom Lane writes:
> I started working on this, and immediately got a pile of regression test
> failures arising from:
>
> create function rtest_viewfunc1(int4) returns int4 as
> 'select count(*) from rtest_view2 where a = $1'
> language 'sql';
> + ERROR: return type mismatch in function: declared to return integer, returns bigint
Maybe instead of testing for strict equality of the types, test for
compatibility.
--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-08-14 15:00:29 | Re: Re: Use int8 for int4/int2 aggregate accumulators? |
Previous Message | Martijn van Oosterhout | 2001-08-14 14:50:06 | Re: PostgresQL equivalent of NOCOUNT |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-08-14 15:00:29 | Re: Re: Use int8 for int4/int2 aggregate accumulators? |
Previous Message | Tom Lane | 2001-08-14 14:09:39 | int8 sequences --- small implementation problem |