Changeset: 7ec8d469fd0b for monetdb-java
URL: https://dev.monetdb.org/hg/monetdb-java/rev/7ec8d469fd0b
Modified Files:
        src/main/java/org/monetdb/jdbc/MonetConnection.java
Branch: default
Log Message:

Adapt the cacheSize to the actual fetch size instead of using the default fetch 
size.

Otherwise we get IndexOutOfBoundsExceptions if the fetchsize setting
is set too small (<100).


diffs (12 lines):

diff --git a/src/main/java/org/monetdb/jdbc/MonetConnection.java 
b/src/main/java/org/monetdb/jdbc/MonetConnection.java
--- a/src/main/java/org/monetdb/jdbc/MonetConnection.java
+++ b/src/main/java/org/monetdb/jdbc/MonetConnection.java
@@ -2282,7 +2282,7 @@ public class MonetConnection
                                 * to allocate to store the entire result.  
However, if
                                 * the user didn't set a cache size, as in this 
case, we
                                 * need to stick to our defaults. */
-                               cacheSize = MonetConnection.DEF_FETCHSIZE;
+                               cacheSize = defaultFetchSize;
                                cacheSizeSetExplicitly = false;
                        } else {
                                cacheSize = parent.cachesize;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to