comparison src/main/java/org/monetdb/jdbc/MonetConnection.java @ 566:eeea18f501b3 onclient

Remove SQLStates from error messages sent upstream Server doesn't count on them.
author Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
date Thu, 23 Sep 2021 15:03:19 +0200 (2021-09-23)
parents fa2493d924c8
children b4d29515c22e
comparison
equal deleted inserted replaced
565:228a529b4059 566:eeea18f501b3
3149 String dummy = in.readLine(); 3149 String dummy = in.readLine();
3150 // Handle the request 3150 // Handle the request
3151 if (transferCommand != null) 3151 if (transferCommand != null)
3152 error = handleTransfer(transferCommand); 3152 error = handleTransfer(transferCommand);
3153 else 3153 else
3154 error = "!M0M10!protocol violation, expected transfer command, got nothing"; 3154 error = "Protocol violation, expected transfer command, got nothing";
3155 // Then prepare for the next iteration 3155 // Then prepare for the next iteration
3156 if (error != null) { 3156 if (error != null) {
3157 out.writeLine("!HY000!" + error + "\n"); 3157 out.writeLine(error + "\n");
3158 error = in.waitForPrompt(); 3158 error = in.waitForPrompt();
3159 } else { 3159 } else {
3160 tmpLine = in.readLine(); 3160 tmpLine = in.readLine();
3161 } 3161 }
3162 linetype = in.getLineType(); 3162 linetype = in.getLineType();