Re: query works in psql, but not thru JDBC

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: query works in psql, but not thru JDBC
Дата
Msg-id 15229.991750600@sss.pgh.pa.us
обсуждение исходный текст
Ответ на query works in psql, but not thru JDBC  ("Arsalan Zaidi" <azaidi@directi.com>)
Список pgsql-interfaces
"Arsalan Zaidi" <azaidi@directi.com> writes:
> SELECT * FROM users WHERE userid = 4 ORDER BY name LIMIT 20 OFFSET 0

> When I run it from the command line inpsql, It works just fine, but when I
> run it using the Postgresql JDBC driver (executeQuery()), I get this error

> Err Mesg : ERROR: Attribute users.name must be GROUPed or used in an
> aggregate function

Curious.  Does JDBC alter the query at all before it sends it?  Try
turning on query logging at the postmaster, and look in the postmaster
log to see what is actually being sent.
        regards, tom lane


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

Предыдущее
От: "Arsalan Zaidi"
Дата:
Сообщение: query works in psql, but not thru JDBC
Следующее
От: Tom Lane
Дата:
Сообщение: Re: What is the difference between the two MSI insta llers?