Re: parse error: LIMIT combined with UNION

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Steve Pothier <STEVEN(dot)POTHIER(at)saic(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: parse error: LIMIT combined with UNION
Date: 2001-09-06 19:24:54
Message-ID: 3662.999804294@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Steve Pothier <STEVEN(dot)POTHIER(at)saic(dot)com> writes:
> PostgreSQL version (example: PostgreSQL-6.5.1): PosegreSQL 7.1

> hbase=# SELECT * FROM subject WHERE subject_id LIKE '0009%' UNION (SELECT * FROM subject WHERE subject_id LIKE '0008%' LIMIT 5);
> ERROR: parser: parse error at or near "limit"

Are you sure that's actually 7.1, and not some beta release? The
command parses fine for me in current sources and in 7.1.3. AFAICT,
the last time anyone changed LIMIT/sub-SELECT parsing was 2001-01-15,
which would have been post 7.1-beta3.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Stephan Szabo 2001-09-06 19:35:37 Re: upper() don't work with field-alias in the order by part
Previous Message Tom Lane 2001-09-06 19:16:26 Re: Conditional NOTIFY is not implemented