Mercurial > hg > monetdb-java
comparison src/main/java/org/monetdb/jdbc/MonetConnection.java @ 657:8476d6f4378f
Demonstrate how to enable the size header
author | Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com> |
---|---|
date | Fri, 09 Sep 2022 12:32:44 +0200 (2022-09-09) |
parents | c6fe5dfecafc |
children | 108123ca6889 |
comparison
equal
deleted
inserted
replaced
656:c6fe5dfecafc | 657:8476d6f4378f |
---|---|
288 int offsetMillis = cal.get(Calendar.ZONE_OFFSET) + cal.get(Calendar.DST_OFFSET); | 288 int offsetMillis = cal.get(Calendar.ZONE_OFFSET) + cal.get(Calendar.DST_OFFSET); |
289 int offsetSeconds = offsetMillis / 1000; | 289 int offsetSeconds = offsetMillis / 1000; |
290 final HandshakeOptions handshakeOptions = new HandshakeOptions(); | 290 final HandshakeOptions handshakeOptions = new HandshakeOptions(); |
291 handshakeOptions.set(Setting.TimeZone, offsetSeconds); | 291 handshakeOptions.set(Setting.TimeZone, offsetSeconds); |
292 handshakeOptions.set(Setting.ReplySize, defaultFetchSize); | 292 handshakeOptions.set(Setting.ReplySize, defaultFetchSize); |
293 // handshakeOptions.set(Setting.SizeHeader, 1); | |
293 server.setHandshakeOptions(handshakeOptions); | 294 server.setHandshakeOptions(handshakeOptions); |
294 | 295 |
295 // we're debugging here... uhm, should be off in real life | 296 // we're debugging here... uhm, should be off in real life |
296 if (debug) { | 297 if (debug) { |
297 try { | 298 try { |