# HG changeset patch # User Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com> # Date 1665486901 -7200 # Node ID 7ec8d469fd0b1bcd21f73e2d44f17f243e768135 # Parent 0b564ae68ac11c60b95b5e40875db18c902c465d 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). 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;