Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f1O3Stx41123 for ; Fri, 23 Feb 2001 22:28:55 -0500 (EST) (envelope-from pgsql-sql-owner@postgresql.org) Received: from wired.hub.org (SHW12-37.accesscable.net [24.71.155.37]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f1MJw3x93401 for ; Thu, 22 Feb 2001 14:58:03 -0500 (EST) (envelope-from jeff@hub.org) Received: from localhost (bignose@localhost) by wired.hub.org (8.11.1/8.11.1) with ESMTP id f1MJt3g74536 for ; Thu, 22 Feb 2001 15:55:04 -0400 (AST) (envelope-from jeff@hub.org) X-Authentication-Warning: wired.hub.org: bignose owned process doing -bs Date: Thu, 22 Feb 2001 15:55:03 -0400 (AST) From: Jeff MacDonald X-Sender: bignose@wired.hub.org Reply-To: Jeff MacDonald To: pgsql-sql@postgresql.org Subject: bug.. ? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200102/375 X-Sequence-Number: 1576 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