pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jost Richstein <jrichstein@softdecc.com>
To: pgsql-general@postgresql.org
To: pgsql-sql@postgresql.org
Subject: Alias-Error
Date: Fri, 10 Oct 2003 10:40:38 +0200
Message-ID: <3F867086.DF4DEDF0@softdecc.com> (raw)

Hi,

I am running a query with alias (a self join) against
version 7.3.4 on Suse Linux 7.3 and on FreeBSD (v5?).
It runs fine on Linux, but produces an error on
FreeBSD: "unknown alias C2". And btw: the query runs
on every other DB I have tried...

The Query is something like this:

SELECT DISTINCT C2.cmc_mchap, C2.cmc_sort
    FROM sis_cmca, sis_cmca C2
    WHERE cm_status != 'U' AND sis_cmca.cmc_name='INTERN2000' AND
          C2.cmc_name='INTERN2000' AND sis_cmca.cmc_mchap=C2.cmc_mchap
          ....

What causes this error? Workarounds?

Jost




view thread (5+ messages)  latest in thread

Message-ID: <3F867086.DF4DEDF0@softdecc.com>
Permalink:  ../3F867086.DF4DEDF0@softdecc.com/
Also on:    postgresql.org/message-id/3F867086.DF4DEDF0@softdecc.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jrichstein@softdecc.com, pgsql-general@postgresql.org
  Subject: Re: Alias-Error
  In-Reply-To: <3F867086.DF4DEDF0@softdecc.com>

* 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