Re: Problem using LIMIT 1 when only 1 record exists.

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: Problem using LIMIT 1 when only 1 record exists.
Дата
Msg-id 873cc8kvpb.fsf@mailbox.samurai.com
обсуждение исходный текст
Ответ на Problem using LIMIT 1 when only 1 record exists.  ("Steve Thames" <steve@softlife.com>)
Ответы Re: Problem using LIMIT 1 when only 1 record exists.
Список pgsql-bugs
"Steve Thames" <steve@softlife.com> writes:
> The SQL command:
> SELECT last FROM table WHERE symbol='Symbol' AND expmoyr='Mmm-YY' ORDER BY
> qdate DESC LIMIT 1;
>
> This query works fine when there is more than one record meeting the
> criteria.  When there is only 1, the query locks and no result is
> returned.

I'm skeptical that LIMIT is broken. Can you provide a reproducible
example?

Also, what version of PostgreSQL is this?

-Neil

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: COPY alloc problem in 7.4
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [ADMIN] Misplaced modifier in Postgresql license