Skip to content

Commit

Permalink
Initial changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffery-Wasty committed Jun 6, 2023
1 parent 953e4a0 commit b207464
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6324,10 +6324,11 @@ final boolean complete(LogonCommand logonCommand, TDSReader tdsReader) throws SQ
String interfaceLibName = "Microsoft JDBC Driver " + SQLJdbcVersion.MAJOR + "." + SQLJdbcVersion.MINOR;
String databaseName = activeConnectionProperties
.getProperty(SQLServerDriverStringProperty.DATABASE_NAME.toString());
String serverName = (null != currentConnectPlaceHolder) ? currentConnectPlaceHolder.getServerName()
: activeConnectionProperties.getProperty(
SQLServerDriverStringProperty.SERVER_NAME
.toString());
String serverName = (null != currentConnectPlaceHolder)
? currentConnectPlaceHolder.getServerName() + "\\" + currentConnectPlaceHolder.getInstanceName()
: activeConnectionProperties.getProperty(SQLServerDriverStringProperty.SERVER_NAME.toString()) + "\\"
+ activeConnectionProperties.getProperty(SQLServerDriverStringProperty.INSTANCE_NAME.toString());

if (null != serverName && serverName.length() > 128) {
serverName = serverName.substring(0, 128);
}
Expand Down

0 comments on commit b207464

Please sign in to comment.