Re: BUG #2549: problem with NATURAL JOIN

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #2549: problem with NATURAL JOIN
Дата
Msg-id 8412.1153830125@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #2549: problem with NATURAL JOIN  ("Kayteck" <kayteck_master@o2.pl>)
Список pgsql-bugs
"Kayteck" <kayteck_master@o2.pl> writes:
> I have two tables joined by foreign key id_przelewu, and for some rows
> results of queries with NATURAL JOIN and JOIN ... USING (...) differs ! I've
> readed that NATURAL JOIN is only shorthand for the second method, but this
> results shows that's not true:

Your two examples are not necessarily equivalent --- in particular, if
id_przelewu isn't the only common column name in the two tables then
NATURAL JOIN isn't equivalent to a join USING only id_przelewu.
I would guess that there's some other column the NATURAL JOIN is trying
to match, and there are no matches.

If you think there's an actual bug here, you need to exhibit a complete
test case, which this most certainly wasn't.

            regards, tom lane

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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: BUG #2549: problem with NATURAL JOIN
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: BUG #2549: problem with NATURAL JOIN