From: Tom Lane <tgl@sss.pgh.pa.us>
To: ALLs.org <info@alls.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: ORDB and dot-notation query
Date: Tue, 10 Nov 2009 23:36:50 -0500
Message-ID: <27602.1257914210@sss.pgh.pa.us> (raw)
In-Reply-To: <17189cdf0911102011t16863599qa68318b25d2b86dc@mail.gmail.com>
References: <17189cdf0911102011t16863599qa68318b25d2b86dc@mail.gmail.com>
"ALLs.org" <info@alls.org> writes:
> select * from clients WHERE
> address.country.tld = 'de'
> address and country are custom table and TYPE
> I receive error:
> ERROR: schema "adress" does not exist*
Yup, because the SQL standard says that a.b.c means column c in table b
in schema a. You need to write
(address.country).tld
to get the parser started in the right direction.
regards, tom lane
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: tgl@sss.pgh.pa.us, info@alls.org
Subject: Re: ORDB and dot-notation query
In-Reply-To: <27602.1257914210@sss.pgh.pa.us>
* 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