Re: org.postgresql.util.PSQLException - column does not exist

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: org.postgresql.util.PSQLException - column does not exist
Дата
Msg-id 12849.1374498498@sss.pgh.pa.us
обсуждение исходный текст
Ответ на org.postgresql.util.PSQLException - column does not exist  (Wayne Oliver <wayn0.ml@gmail.com>)
Список pgsql-novice
Wayne Oliver <wayn0.ml@gmail.com> writes:
> [ query works when done by hand, not so much when done by java program ]

I'd bet good money that there's more than one table named "order_details",
some of which have an "mdn" column while others don't.  Most likely the
tables are in different schemas and you get the different results
because you and the program are running with different search_path
settings.  But I've seen at least one case where the person wasn't even
connecting to the same database as his program was.

You could try something like

    \d *.order_details

to check for the same-table-different-schemas theory.

            regards, tom lane


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

Предыдущее
От: Wayne Oliver
Дата:
Сообщение: org.postgresql.util.PSQLException - column does not exist
Следующее
От: Luca Ferrari
Дата:
Сообщение: Re: org.postgresql.util.PSQLException - column does not exist