| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера