Re: ORDB and dot-notation query - Mailing list pgsql-sql

From Tom Lane
Subject Re: ORDB and dot-notation query
Date
Msg-id 27602.1257914210@sss.pgh.pa.us
Whole thread Raw
In response to ORDB and dot-notation query  ("ALLs.org" <info@alls.org>)
List pgsql-sql
"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


pgsql-sql by date:

Previous
From: "ALLs.org"
Date:
Subject: Re: ORDB and dot-notation query
Next
From: bujjibabu
Date:
Subject: Caliculating Business Days and adding business days usefull functions for developers