Re: NullPointerException when calling ResultSet.absolute(int)
В списке pgsql-jdbc по дате отправления:
| От | Clemens Eisserer |
|---|---|
| Тема | Re: NullPointerException when calling ResultSet.absolute(int) |
| Дата | |
| Msg-id | 194f625505082904281f3ca75@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: NullPointerException when calling ResultSet.absolute(int) (Oliver Jowett <oliver@opencloud.com>) |
| Ответы |
Re: NullPointerException when calling ResultSet.absolute(int)
|
| Список | pgsql-jdbc |
Hello Oliver and thanks a lot for answering, > Either you can use two queries, or use a scrollable ResultSet and call > ResultSet.last() / ResultSet.getRow(). The second approach causes the > entire ResultSet to be loaded into the Java heap, though, so it's not so > good for large results. Currently I use the last()/getRow approach but as you confirmed this approach does exactly what I don't want - to transfer the whole selection between server and client. Isn't there a workarround for this, maybe setting the fetch-size (default set to 0)? Thx, lg Clemens
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера