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

Поиск
Список
Период
Сортировка
Искать
От
Tod McQuillin
Тема
Re: Found a bug in the procedural languages code relating to LIMIT 1
Дата
Msg-id
Pine.GSO.4.31.0101110933210.578-100000@sysadmin
Ответ на
Список
Дерево обсуждения
Found a bug in the procedural languages code relating to LIMIT 1 <drevil@sidereal.kz>
Re: Found a bug in the procedural languages code relating to LIMIT 1 Tom Lane <tgl@sss.pgh.pa.us>
Re: Found a bug in the procedural languages code relating to LIMIT 1 <drevil@sidereal.kz>
Re: Found a bug in the procedural languages code relating to LIMIT 1 Tod McQuillin <devin@spamcop.net>
On 11 Jan 2001 drevil@sidereal.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

В списке pgsql-general по дате отправления
От:
Дата:
От: Tom Lane
Дата:
FAQ