Mercurial > hg > monetdb-java
comparison src/main/java/org/monetdb/jdbc/MonetConnection.java @ 903:778959b2e0a4
Send ClientInfo on startup
Configurable through the client_info=bool, client_application=NAME,
client_remark=MESSAGE properties.
author | Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com> |
---|---|
date | Fri, 14 Jun 2024 15:57:49 +0200 (10 months ago) |
parents | 6e8ff2818fa7 |
children | a52bc2dcdb8c |
comparison
equal
deleted
inserted
replaced
902:65d42db0c831 | 903:778959b2e0a4 |
---|---|
220 final SQLException sqle = new SQLNonTransientConnectionException(connex[0], "08001", e); | 220 final SQLException sqle = new SQLNonTransientConnectionException(connex[0], "08001", e); |
221 for (int i = 1; i < connex.length; i++) { | 221 for (int i = 1; i < connex.length; i++) { |
222 sqle.setNextException(new SQLNonTransientConnectionException(connex[1], "08001")); | 222 sqle.setNextException(new SQLNonTransientConnectionException(connex[1], "08001")); |
223 } | 223 } |
224 throw sqle; | 224 throw sqle; |
225 } | |
226 | |
227 // send any clientinfo | |
228 if (server.hasClientInfo()) { | |
229 sendControlCommand("clientinfo " + server.getClientInfo().format()); | |
225 } | 230 } |
226 | 231 |
227 // Now take care of any options not handled during the handshake | 232 // Now take care of any options not handled during the handshake |
228 curReplySize = defaultFetchSize; | 233 curReplySize = defaultFetchSize; |
229 if (lang == LANG_SQL) { | 234 if (lang == LANG_SQL) { |