# HG changeset patch # User Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com> # Date 1628855186 -7200 # Node ID 95d1b0a38aede2391e71da9edecafa01074587d5 # Parent 71d8ce4c3ac0f73ab48ba01b5e90fb595e9f7fcb Stub implementation of FILETRANSFER handling diff --git a/src/main/java/org/monetdb/jdbc/MonetConnection.java b/src/main/java/org/monetdb/jdbc/MonetConnection.java --- a/src/main/java/org/monetdb/jdbc/MonetConnection.java +++ b/src/main/java/org/monetdb/jdbc/MonetConnection.java @@ -3108,6 +3108,17 @@ public class MonetConnection tmpLine = in.readLine(); linetype = in.getLineType(); break; + case FILETRANSFER: + // Consume the command + String dummy = in.readLine(); + // Consume the fake prompt inserted by MapiSocket. + dummy = in.readLine(); + // Complain + out.writeLine("!HY000!JDBC driver does not support file transfer yet\n"); + // Then prepare for the next iteration + tmpLine = in.readLine(); + linetype = in.getLineType(); + break; default: // Yeah... in Java this is correct! // we have something we don't expect/understand, let's make it an error message tmpLine = String.format("!M0M10!protocol violation, unexpected %s line: %s", linetype, tmpLine);