pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff MacDonald <jeff@hub.org>
To: pgsql-sql@postgresql.org
Subject: bug.. ?
Date: Thu, 22 Feb 2001 15:55:03 -0400 (AST)
Message-ID: <Pine.BSF.4.21.0102221553070.534-100000@wired.hub.org> (raw)

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@pgsql.com		| jeff@hub.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




view thread (10+ messages)  latest in thread

Message-ID: <Pine.BSF.4.21.0102221553070.534-100000@wired.hub.org>
Permalink:  ../Pine.BSF.4.21.0102221553070.534-100000@wired.hub.org/
Also on:    postgresql.org/message-id/Pine.BSF.4.21.0102221553070.534-100000@wired.hub.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jeff@hub.org
  Subject: Re: bug.. ?
  In-Reply-To: <Pine.BSF.4.21.0102221553070.534-100000@wired.hub.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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