diff src/main/java/org/monetdb/jdbc/MonetConnection.java @ 696:07d60185eeb9

Eliminate hardcoded value 250 in the constructor of MonetPreparedStatement. For this an internal package method MonetConnection.getDefaultFetchSize() is added. Also use this method in constructor of MonetStatement to let getFetchSize() return the proper fetchSize instead of 0.
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Wed, 23 Nov 2022 20:28:17 +0100 (2022-11-23)
parents 2233b172e06d
children 68422d7f3961
line wrap: on
line diff
--- a/src/main/java/org/monetdb/jdbc/MonetConnection.java
+++ b/src/main/java/org/monetdb/jdbc/MonetConnection.java
@@ -2175,6 +2175,15 @@ public class MonetConnection
 	private static int seqCounter = 0;
 
 	/**
+	 * returns default fetchSize as set at connection moment
+	 *
+	 * @return defaultFetchSize
+	 */
+	protected int getDefaultFetchSize() {
+		return defaultFetchSize;
+	}
+
+	/**
 	 * A Response is a message sent by the server to indicate some
 	 * action has taken place, and possible results of that action.
 	 */