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

From: Neil Conway <neilc(at)samurai(dot)com>
To: "Steve Thames" <steve(at)softlife(dot)com>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Problem using LIMIT 1 when only 1 record exists.
Date: 2003-11-28 21:52:00
Message-ID: 873cc8kvpb.fsf@mailbox.samurai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Steve Thames" <steve(at)softlife(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Martijn van Oosterhout 2003-11-28 22:01:39 Re: [GENERAL] Misplaced modifier in Postgresql license
Previous Message Richard Welty 2003-11-28 21:50:40 Re: [GENERAL] Misplaced modifier in Postgresql license