Thread: ORDB and dot-notation query
Hi,<br /><br />I have problem with ORDB.<br /><br />When exec query:<br /><br />select * from clients WHERE<br />address.country.tld= 'de'<br /><br />address and country are custom table and TYPE <br /><br />I receive error:<br /><br/><i>SQL error:<br /> ERROR: schema "adress" does not exist</i><br /><br />Do somebody have some problem and how tofix this?<br /><br />Thanks
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
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
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:
Are you sure that you didn't just misspell address?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?
--
Regards,
Richard Broersma Jr.
Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug
"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