| От | Tom Lane |
|---|---|
| Тема | Re: Bad error message |
| Дата | |
| Msg-id | 2047.1222834168@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Bad error message ("Gurjeet Singh" <singh.gurjeet@gmail.com>) |
| Ответы |
Re: Bad error message
|
| Список | pgsql-hackers |
"Gurjeet Singh" <singh.gurjeet@gmail.com> writes:
> On Wed, Oct 1, 2008 at 3:07 AM, Decibel! <decibel@decibel.org> wrote:
>> ERROR: aggregates not allowed in WHERE clause
> No, the real issue is that you are referencing the outer table's column's
> max() in the inner query (correlated sub-query).
Yeah. It's not easy to see how the software could guess your real
intentions here. We could maybe offer a vaguely-worded HINT but I'm
not able to think of wording that would be very helpful.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера