pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedORDB and dot-notation query
4+ messages / 3 participants
[nested] [flat]
* ORDB and dot-notation query
@ 2009-11-11 04:11 ALLs.org <info@alls.org>
2009-11-11 04:15 ` Re: ORDB and dot-notation query Richard Broersma <richard.broersma@gmail.com>
2009-11-11 04:36 ` Re: ORDB and dot-notation query Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 2 replies; 4+ messages in thread
From: ALLs.org @ 2009-11-11 04:11 UTC (permalink / raw)
To: pgsql-sql
Hi,
I have problem with ORDB.
When exec query:
select * from clients WHERE
address.country.tld = 'de'
address and country are custom table and TYPE
I receive error:
*SQL error:
ERROR: schema "adress" does not exist*
Do somebody have some problem and how to fix this?
Thanks
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: ORDB and dot-notation query
2009-11-11 04:11 ORDB and dot-notation query ALLs.org <info@alls.org>
@ 2009-11-11 04:15 ` Richard Broersma <richard.broersma@gmail.com>
2009-11-11 04:27 ` Re: ORDB and dot-notation query ALLs.org <info@alls.org>
1 sibling, 1 reply; 4+ messages in thread
From: Richard Broersma @ 2009-11-11 04:15 UTC (permalink / raw)
To: ALLs.org <info@alls.org>; +Cc: pgsql-sql
On Tue, Nov 10, 2009 at 8:11 PM, ALLs.org <info@alls.org> wrote:
> I have problem with ORDB.
>
> When exec query:
>
> select * from clients WHERE
> address.country.tld = 'de'
>
> address and country are custom table and TYPE
>
> I receive error:
>
> SQL error:
> ERROR: schema "adress" does not exist
>
> Do somebody have some problem and how to fix this?
Are you sure that you didn't just misspell address?
--
Regards,
Richard Broersma Jr.
Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: ORDB and dot-notation query
2009-11-11 04:11 ORDB and dot-notation query ALLs.org <info@alls.org>
2009-11-11 04:15 ` Re: ORDB and dot-notation query Richard Broersma <richard.broersma@gmail.com>
@ 2009-11-11 04:27 ` ALLs.org <info@alls.org>
0 siblings, 0 replies; 4+ messages in thread
From: ALLs.org @ 2009-11-11 04:27 UTC (permalink / raw)
To: pgsql-sql
This is tipfeler when writing mail, but in database it is 100% ok like
below:
I'm also using Windows version, can this be reason of problem?
When exec query:
select * from clients WHERE
adress.country.tld = 'de'
adress and country are custom table and TYPE
I receive error:
*SQL error:
ERROR: schema "adress" does not exist*
Thanks
On Wed, Nov 11, 2009 at 5:15 AM, Richard Broersma <
richard.broersma@gmail.com> wrote:
> On Tue, Nov 10, 2009 at 8:11 PM, ALLs.org <info@alls.org> wrote:
>
> > I have problem with ORDB.
> >
> > When exec query:
> >
> > select * from clients WHERE
> > address.country.tld = 'de'
> >
> > address and country are custom table and TYPE
> >
> > I receive error:
> >
> > SQL error:
> > ERROR: schema "adress" does not exist
> >
> > Do somebody have some problem and how to fix this?
>
> Are you sure that you didn't just misspell address?
>
>
> --
> Regards,
> Richard Broersma Jr.
>
> Visit the Los Angeles PostgreSQL Users Group (LAPUG)
> http://pugs.postgresql.org/lapug
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: ORDB and dot-notation query
2009-11-11 04:11 ORDB and dot-notation query ALLs.org <info@alls.org>
@ 2009-11-11 04:36 ` Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 4+ messages in thread
From: Tom Lane @ 2009-11-11 04:36 UTC (permalink / raw)
To: ALLs.org <info@alls.org>; +Cc: 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
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2009-11-11 04:36 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-11-11 04:11 ORDB and dot-notation query ALLs.org <info@alls.org>
2009-11-11 04:15 ` Richard Broersma <richard.broersma@gmail.com>
2009-11-11 04:27 ` ALLs.org <info@alls.org>
2009-11-11 04:36 ` Tom Lane <tgl@sss.pgh.pa.us>
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