diff src/main/java/org/monetdb/jdbc/MonetResultSet.java @ 623:1c3cdf0667d7

Do more cleanup in the close() methods such as calling clearWarnings(), clearParameters(), clearBatch() and dereferencing cached objects. Remove deprecated finalize() method from MonetPreparedStatement. finalize() is deprecated from Java 9 onwards.
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Thu, 20 Jan 2022 13:00:00 +0100 (2022-01-20)
parents 6aa38e8c0f2d
children dd9b4fb14256
line wrap: on
line diff
--- a/src/main/java/org/monetdb/jdbc/MonetResultSet.java
+++ b/src/main/java/org/monetdb/jdbc/MonetResultSet.java
@@ -320,6 +320,7 @@ public class MonetResultSet
 	 */
 	@Override
 	public void close() {
+		clearWarnings();
 		if (header != null && !header.isClosed()) {
 			header.close();
 		}