comparison 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
comparison
equal deleted inserted replaced
695:a5b840eebf77 696:07d60185eeb9
2171 2171
2172 /** the default number of rows to read at once from this connection */ 2172 /** the default number of rows to read at once from this connection */
2173 private int defaultFetchSize = DEF_FETCHSIZE; 2173 private int defaultFetchSize = DEF_FETCHSIZE;
2174 /** The sequence counter */ 2174 /** The sequence counter */
2175 private static int seqCounter = 0; 2175 private static int seqCounter = 0;
2176
2177 /**
2178 * returns default fetchSize as set at connection moment
2179 *
2180 * @return defaultFetchSize
2181 */
2182 protected int getDefaultFetchSize() {
2183 return defaultFetchSize;
2184 }
2176 2185
2177 /** 2186 /**
2178 * A Response is a message sent by the server to indicate some 2187 * A Response is a message sent by the server to indicate some
2179 * action has taken place, and possible results of that action. 2188 * action has taken place, and possible results of that action.
2180 */ 2189 */