changeset 500:95d1b0a38aed onclient

Stub implementation of FILETRANSFER handling
author Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
date Fri, 13 Aug 2021 13:46:26 +0200 (2021-08-13)
parents 71d8ce4c3ac0
children eaad79c3235f
files src/main/java/org/monetdb/jdbc/MonetConnection.java
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);