Mercurial > hg > monetdb-java
comparison src/main/java/org/monetdb/jdbc/MonetConnection.java @ 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 | 83354bd21320 |
comparison
equal
deleted
inserted
replaced
499:71d8ce4c3ac0 | 500:95d1b0a38aed |
---|---|
3106 // read the next line (can be prompt, new result, error, etc.) | 3106 // read the next line (can be prompt, new result, error, etc.) |
3107 // before we start the loop over | 3107 // before we start the loop over |
3108 tmpLine = in.readLine(); | 3108 tmpLine = in.readLine(); |
3109 linetype = in.getLineType(); | 3109 linetype = in.getLineType(); |
3110 break; | 3110 break; |
3111 case FILETRANSFER: | |
3112 // Consume the command | |
3113 String dummy = in.readLine(); | |
3114 // Consume the fake prompt inserted by MapiSocket. | |
3115 dummy = in.readLine(); | |
3116 // Complain | |
3117 out.writeLine("!HY000!JDBC driver does not support file transfer yet\n"); | |
3118 // Then prepare for the next iteration | |
3119 tmpLine = in.readLine(); | |
3120 linetype = in.getLineType(); | |
3121 break; | |
3111 default: // Yeah... in Java this is correct! | 3122 default: // Yeah... in Java this is correct! |
3112 // we have something we don't expect/understand, let's make it an error message | 3123 // we have something we don't expect/understand, let's make it an error message |
3113 tmpLine = String.format("!M0M10!protocol violation, unexpected %s line: %s", linetype, tmpLine); | 3124 tmpLine = String.format("!M0M10!protocol violation, unexpected %s line: %s", linetype, tmpLine); |
3114 // don't break; fall through... | 3125 // don't break; fall through... |
3115 case ERROR: | 3126 case ERROR: |