diff src/main/java/org/monetdb/jdbc/MonetConnection.java @ 705:ba226d5d3996

Fix file transfers When the refactored BufferedMCLReader reaches the end of the segment it keeps returning LineType.PROMPT until it is reset. Usually this reset is done automatically by the BufferedMCLWriter. However, in the file tranfer protocol there is a moment where the server first acknowledges the end of the upload by sending a segment containing PROMPT3, and then immediately another segment containing the "&1 bla bla" status message. Because the client doesn't send anything between these two, the reader did not get reset.
author Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
date Fri, 09 Dec 2022 12:35:13 +0100 (2022-12-09)
parents 1c9d4c2a6947
children 7752e15b6a23
line wrap: on
line diff
--- a/src/main/java/org/monetdb/jdbc/MonetConnection.java
+++ b/src/main/java/org/monetdb/jdbc/MonetConnection.java
@@ -3318,6 +3318,7 @@ public class MonetConnection
 								out.writeLine(error + "\n");
 								error = in.discardRemainder();
 							} else {
+								in.resetLineType();
 								in.advance();
 							}
 							break;