Re: Erratic error message "ERROR: column "id_compte" does
От
Richard Huxton
Тема
Re: Erratic error message "ERROR: column "id_compte" does
Дата
Msg-id
42384847.5010001@archonet.com
Ответ на
Re: Erratic error message "ERROR: column "id_compte" does (David Pradier)
Список
Дерево обсуждения
Erratic error message "ERROR: column "id_compte" does not exist" David Pradier <dpradier@apartia.fr>
Re: Erratic error message "ERROR: column "id_compte" does Richard Huxton <dev@archonet.com>
Re: Erratic error message "ERROR: column "id_compte" does David Pradier <dpradier@apartia.fr>
Re: Erratic error message "ERROR: column "id_compte" does Richard Huxton <dev@archonet.com>
Re: Erratic error message "ERROR: column "id_compte" does David Pradier <dpradier@apartia.fr>
Re: Erratic error message "ERROR: column "id_compte" does Richard Huxton <dev@archonet.com>
Re: Erratic error message "ERROR: column "id_compte" does Tom Lane <tgl@sss.pgh.pa.us>
Re: Erratic error message "ERROR: column "id_compte" does David Pradier <dpradier@apartia.fr>
David Pradier wrote: > Ok, understood. > One can access the columns of the main query from the subquery, > therefore in my own query the column "id_compte" is found, > therefore there is no error message. > > Doesn't this count as a bug ? Tricky, you could have something like: SELECT a.* FROM a WHERE (a1,a2) IN (SELECT a1,b3 FROM b ...) If that's legal, then so is your query. > On Wed, Mar 16, 2005 at 02:24:48PM +0000, Richard Huxton wrote: > >>David Pradier wrote: >> >>>Actually, the column "id_compte" is the primary key of the table "compte". >>>The column "id_compte" doesn't exist in the table "operation". >>> >>>But i still don't understand why there is no error message, could you >>>explain a little more ? >> >>I think it's intended for use in the WHERE clause: >> SELECT a.* FROM a WHERE a1 IN (SELECT b3 FROM b WHERE b2=a2) -- Richard Huxton Archonet Ltd
В списке pgsql-hackers по дате отправления
От: Bruce Momjian
Дата: