Re: BUG #7653: Minor problem with join condition

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #7653: Minor problem with join condition
Дата
Msg-id 13179.1352730603@sss.pgh.pa.us
обсуждение
Ответ на BUG #7653: Minor problem with join condition  (stefano@sportilia.com)
Список pgsql-bugs
stefano@sportilia.com writes:
> Don't know if this is a bug or a correct behaviour, but in a query like
> this:

> SELECT t1.* FROM
> table1 t1 JOIN
> table2 t2 ON t1.id = t2.t1id JOIN
> table3 t3 ON t1.id = t2.t1id

> The parser should return an error because we are joining a table without
> using any of its column.

There is no such restriction in the SQL standard.

            regards, tom lane

В списке pgsql-bugs по дате отправления: