From: | "Albe Laurenz" <all(at)adv(dot)magwien(dot)gv(dot)at> |
---|---|
To: | "Harry Jackson *EXTERN*" <harryjackson(at)gmail(dot)com>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Is this a bug? |
Date: | 2007-07-02 08:39:34 |
Message-ID: | AFCCBB403D7E7A4581E48F20AF3E5DB203A0EC9E@EXADV1.host.magwien.gv.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Harry Jackson wrote:
>
> The following sql statement fails because the column "user_id" does
> not exist in the users table.
>
> =# select user_id from users WHERE username = 'blah';
> ERROR: column "user_id" does not exist
> LINE 1: select user_id from users WHERE username = 'blah......
> ^
[...]
>
> =# delete from map_users_roles where user_id = (select user_id from
> users WHERE username = 'blah');
> DELETE 33631
>
[...]
>
> Still, this was quite a suprise to me and I would consider this a bug.
>
> Thoughts?
It is not a bug, but it is one of the best examples why it is good to
always qualify columns that I have ever seen!
Yours,
Laurenz Albe
From | Date | Subject | |
---|---|---|---|
Next Message | A. Kretschmer | 2007-07-02 08:58:42 | Re: Tables not created in proper schema |
Previous Message | Dave Page | 2007-07-02 08:26:46 | Re: postgressqlnot support inwindows 2000 |