Subject | Re: Problem with SELECT Statement |
---|---|
Author | Roman Rokytskyy |
Post date | 2003-08-07T17:13:11Z |
Hi,
Committing the transaction closes all associated statements and result
sets (see JDBC specs). This also releases the cursor. In the future
JayBird will complain more clear if you try to use closed result set.
means that JayBird tries to load your 250,000 into memory.
-Xmx option (use "java -X" for more information). Default value was 64
MB, I do not know if it was changed in 1.4.2.
Best regards,
Roman Rokytskyy
> If I run the code below I get the following output (First linesYou get this because of conn.commit() in while(rs.netx()) statement.
> ommited):
>
> ..................................................350
> .................................................Error during
> Transform.Contacts...
> GDS Exception. Dynamic SQL Error
> SQL error code = -504
> Cursor unknown
> Error Code: 335544569
> SQL State: null
Committing the transaction closes all associated statements and result
sets (see JDBC specs). This also releases the cursor. In the future
JayBird will complain more clear if you try to use closed result set.
> If I comment the autocommit and commit statements I get an out ofIn autocommit mode (default) all data are fetched to the client. This
> memory message. If I add a first statement I can open the SELECT for
> the first 70'000 records, if I put a higher number I get the
> following output:
means that JayBird tries to load your 250,000 into memory.
> Task Manager tells me that I have more than 750 MB available memory.It does not matter. You have to specify maximum memory for JVM using
-Xmx option (use "java -X" for more information). Default value was 64
MB, I do not know if it was changed in 1.4.2.
Best regards,
Roman Rokytskyy