diff src/main/java/nl/cwi/monetdb/jdbc/MonetConnection.java @ 378:02f353f62abe

Adjust UpdateResponse to allow for large updates (long instead of int). Also change getLargeUpdateCount() to use this long count.
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Fri, 25 Sep 2020 19:06:11 +0200 (2020-09-25)
parents 8a813f5cef1b
children 11c30e3b7966
line wrap: on
line diff
--- a/src/main/java/nl/cwi/monetdb/jdbc/MonetConnection.java
+++ b/src/main/java/nl/cwi/monetdb/jdbc/MonetConnection.java
@@ -2601,10 +2601,10 @@ public class MonetConnection
 	 */
 	// {{{ UpdateResponse class implementation
 	final static class UpdateResponse implements Response {
-		public final int count;
+		public final long count;
 		public final String lastid;
 
-		public UpdateResponse(final int cnt, final String id) {
+		public UpdateResponse(final long cnt, final String id) {
 			// fill the blank finals
 			this.count = cnt;
 			this.lastid = id;
@@ -2902,7 +2902,7 @@ public class MonetConnection
 									}
 								} break;
 								case StartOfHeaderParser.Q_UPDATE:
-									res = new UpdateResponse(sohp.getNextAsInt(),   // count
+									res = new UpdateResponse(sohp.getNextAsLong(),   // count
 												 sohp.getNextAsString() // key-id
 												);
 									break;