pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Csaba Nagy <nagy@ecircle-ag.com>
To: jrichstein@softdecc.com
Cc: Postgres general mailing list <pgsql-general@postgresql.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: Alias-Error
Date: 22 Oct 2003 10:18:52 +0200
Message-ID: <1066810732.7092.69.camel@coppola.ecircle.de> (raw)
In-Reply-To: <3F94DDA0.C84A2E31@softdecc.com>
References: <3F867086.DF4DEDF0@softdecc.com>
	<19199.1066315399@sss.pgh.pa.us>
	<3F94DDA0.C84A2E31@softdecc.com>

You have the alias in upper case: "C2", and postgres complains about a
lower case "c2". May be this some case sensitivity problem ?
Just a thought.

HTH,
Csaba.


On Tue, 2003-10-21 at 09:17, Jost Richstein wrote:
> Ok. The exact error message is as follows:
> 
> SQLException Time      : Mon Oct 20 13:15:25 CEST 2003
> SQLException ErrorCode : 0
> SQLException SQLState  : null
> SQLException Message   : ERROR:  Relation "c2" does not exist
> SQLException Connection: 4878867
> 
> 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
> 
> Tom Lane wrote:
> > 
> > Jost Richstein <jrichstein@softdecc.com> writes:
> > > 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".
> > 
> > The string "unknown alias" appears nowhere in the 7.3 sources.
> > Are you sure you are talking to a Postgres database?
> > 
> >                         regards, tom lane
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
> 
>                http://www.postgresql.org/docs/faqs/FAQ.html





view thread (5+ messages)

Message-ID: <1066810732.7092.69.camel@coppola.ecircle.de>
Permalink:  ../1066810732.7092.69.camel@coppola.ecircle.de/
Also on:    postgresql.org/message-id/1066810732.7092.69.camel@coppola.ecircle.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: nagy@ecircle-ag.com, jrichstein@softdecc.com, pgsql-general@postgresql.org
  Subject: Re: Alias-Error
  In-Reply-To: <1066810732.7092.69.camel@coppola.ecircle.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