Re: Need setFetchSize()

Поиск
Список
Период
Сортировка
От Barry Lind
Тема Re: Need setFetchSize()
Дата
Msg-id 3E7131C4.6040409@xythos.com
обсуждение исходный текст
Ответ на Need setFetchSize()  (Michel Néron <mneron@silentsoft.com>)
Список pgsql-jdbc
Michel,

I would recommend getting the 7.3 source code and changing the
definition of getFetchSize() in AbstractJdbc2Statement.java from:

    public void setFetchSize(int rows) throws SQLException
    {
        throw org.postgresql.Driver.notImplemented();
    }

to:
    public void setFetchSize(int rows) throws SQLException
    {
    }

Basically make this method a noop.  That should allow your code to run.
    Actually backporting the functionality from 7.4 to 7.3 that
implements something real for setFetchSize() is a major amount of work.

I would be very interested in knowing what problems you are having with
the 7.4 code.  Since that is new functionality, there are probably some
bugs lurking in it.  But without more details on the problem you are
seeing, I can't fix the bugs.

thanks,
--Barry



Michel Néron wrote:
> I need setFetchSize() methode in jdbc2 for JVM 1.2-1.3 for
> compatibilities with the orther database cause they don't have a LIMIT.
>
> I known it is implement in the "7.4dev (build 203)", but I have some
> parsing problem with that version but not with the release one.
>
> The implementation of that methode it is enough isolate for I take the
> right source for I build a stable binary?
>
> If yes, what version and what source I need for make that?
>
> Or, when you planing to release it?
>
> Michel Neron
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>



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

Предыдущее
От: Barry Lind
Дата:
Сообщение: Re: changes to error reporting questions
Следующее
От: "Fernando Soler"
Дата:
Сообщение: I would like to get some examples on using jdbc with postgres.