Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ ServerPortPlaceHolder getRoutingInfo() {
// is
// false).

private static String hostName = null;
private String hostName = null;

boolean sendStringParametersAsUnicode() {
return sendStringParametersAsUnicode;
Expand Down Expand Up @@ -4414,7 +4414,7 @@ else if (serverMajorVersion >= 9) // Yukon (9.0) --> TDS 7.2 // Prelogin disconn
tdsWriter.writeShort((short) TDS_LOGIN_REQUEST_BASE_LEN);

// Hostname
tdsWriter.writeShort((short) (hostName == null ? 0 : hostName.length()));
tdsWriter.writeShort((short) ((hostName != null && !hostName.isEmpty()) ? hostName.length() : 0));
dataLen += hostnameBytes.length;

// Only send user/password over if not fSSPI or fed auth ADAL... If both user/password and SSPI are in login
Expand Down