On Jun 19, 5:52 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I see the same thing with nested-vm 48. Surely, it is valid to call
> setMaxRows prior to executing the statement?
> At least, many other drivers we've worked with allow this.
> Stmt.checkOpen seems to want pointer to be set; it is
> not set until the statement is executed. Perhaps Stmt could maintain
> it's own instance variable called maxRows and
> use it to set the ResultSet's max rows?
>
Here is a diff for Stmt.java that I believe yields the correct
behavior:
33a34,35
> int maxRows;
>
118a121
> rs.maxRows = maxRows;
199d201
< checkOpen();
201c203
< rs.maxRows = max;
---
> maxRows = max;
Cheers,
Rob
--~--~---------~--~----~------------~-------~--~----~
Mailing List: http://groups.google.com/group/sqlitejdbc?hl=en
To unsubscribe, send email to [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---