bug.. ?

From: Jeff MacDonald <jeff(at)hub(dot)org>
To: pgsql-sql(at)postgresql(dot)org
Subject: bug.. ?
Date: 2001-02-22 19:55:03
Message-ID: Pine.BSF.4.21.0102221553070.534-100000@wired.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

A person recent pointed this out to me..

seems a bit funny, because limit 1 pretty much
say's it't not gonna return multiple values.

jeff

> This doesn't work:
>
> CREATE FUNCTION vuln_port(int4) RETURNS int4 AS 'SELECT port FROM
> i_host_vuln WHERE vuln = $1 GROUP BY port ORDER BY count(port) DESC
> LIMIT 1' LANGUAGE 'sql';
>
> The result:
> ERROR: function declared to return int4 returns multiple values in final
> retrieve
>
>
> I'm running 7.0.2.

Jeff MacDonald,

-----------------------------------------------------
PostgreSQL Inc | Hub.Org Networking Services
jeff(at)pgsql(dot)com | jeff(at)hub(dot)org
www.pgsql.com | www.hub.org
1-902-542-0713 | 1-902-542-3657
-----------------------------------------------------
Facsimile : 1 902 542 5386
IRC Nick : bignose
PGP Public Key : http://bignose.hub.org/public.txt

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bjørn T Johansen 2001-02-22 22:49:30 Strange parse error??
Previous Message J.H.M. Dassen Ray 2001-02-22 17:11:37 Re: two tables - foreign keys referring to each other...]