changeset 660:7ec8d469fd0b

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).
author Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
date Tue, 11 Oct 2022 13:15:01 +0200 (2022-10-11)
parents 0b564ae68ac1
children c8f7781a414e
files src/main/java/org/monetdb/jdbc/MonetConnection.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;