Re: Found a bug in the procedural languages code relating to LIMIT 1

From: Tod McQuillin <devin(at)spamcop(dot)net>
To: <drevil(at)sidereal(dot)kz>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Found a bug in the procedural languages code relating to LIMIT 1
Date: 2001-01-11 15:34:51
Message-ID: Pine.GSO.4.31.0101110933210.578-100000@sysadmin
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11 Jan 2001 drevil(at)sidereal(dot)kz wrote:

> Try a function like this:
>
> CREATE FUNCTION foo(...) RETURNS INT4 AS '
> SELECT shoesize FROM customers ORDER BY time LIMIT 1
> ' LANGUAGE 'sql';

What you describe does sound like a bug to me (maybe in the documentation
though).

But this query should be the same and should return only one result:

SELECT shoesize FROM customers WHERE time = min(time)
--
Tod McQuilin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-01-11 15:51:35 Re: Found a bug in the procedural languages code relating to LIMIT 1
Previous Message drevil 2001-01-11 13:13:43 Found a bug in the procedural languages code relating to LIMIT 1