pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joerg Fischer <fischer@zkm.de>
To: PGSQL-SQL <pgsql-sql@postgreSQL.org>
Subject: SQL-Query error with PGSQL 6.5beta1
Date: Wed, 05 May 1999 08:55:34 +0200
Message-ID: <372FEB66.68402589@zkm.de> (raw)

Hi!

If there is a separate beta mailing list for these kind of incidents, I
am sorry, but I could not find it.

Now, here is the problem. The following query fails with PGSQL 6.5beta1,
even though it seems correct:

select superext as name from OM_ExtendInheritance where subext in (
    select superext as name from OM_ExtendInheritance where subext in (
      select 'Patient' as name
    )
    union select 'Patient' as name
  );

Postgresql reports: 
ERROR:  parser: parse error at or near "union"  


Could there be a problem handling nested expressions?

Thank you!

Regards
Joerg Fischer



Message-ID: <372FEB66.68402589@zkm.de>
Permalink:  ../372FEB66.68402589@zkm.de/
Also on:    postgresql.org/message-id/372FEB66.68402589@zkm.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: fischer@zkm.de
  Subject: Re: SQL-Query error with PGSQL 6.5beta1
  In-Reply-To: <372FEB66.68402589@zkm.de>
  References: <372FEB66.68402589@zkm.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox