Thread: Need setFetchSize()

Need setFetchSize()

From
Michel Néron
Date:
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



Re: Need setFetchSize()

From
Barry Lind
Date:
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)
>