Re: JDBC and processing large numbers of rows

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: JDBC and processing large numbers of rows
Дата
Msg-id 40A17AA6.5070209@opencloud.com
обсуждение исходный текст
Ответ на Re: JDBC and processing large numbers of rows  (Sean Shanny <shannyconsulting@earthlink.net>)
Ответы Re: JDBC and processing large numbers of rows
Re: JDBC and processing large numbers of rows
Список pgsql-jdbc
Sean Shanny wrote:

> Make sure you do not end your SQL with a ; (semi colon) as that will
> cause the fetching part not to work.  Don't know why but it does. :-)

Technically, "SELECT foo;" is two statements, "SELECT foo" and "", as
JDBC doesn't require a statement terminator. The (simple-minded) JDBC
query parser doesn't do anything special to ignore trailing empty
statements. And you can't DECLARE a cursor that runs two statements.. so
the driver says "two statements, can't use a cursor!".

-O

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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: JDBC and processing large numbers of rows
Следующее
От: Sean Shanny
Дата:
Сообщение: Re: JDBC and processing large numbers of rows