Skip to content

Commit

Permalink
Merge branch 'users/muskgupta/updateAppName' of https://github.com/mi…
Browse files Browse the repository at this point in the history
…crosoft/mssql-jdbc into users/muskgupta/updateAppName
  • Loading branch information
muskan124947 committed Jan 2, 2025
2 parents 0bc5e12 + 7915105 commit 431de86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,7 @@ public java.sql.Connection connect(String url, Properties suppliedProperties) th
Properties connectProperties = parseAndMergeProperties(url, suppliedProperties);
if (connectProperties != null) {
result = DriverJDBCVersion.getSQLServerConnection(toString());
if (suppliedProperties == null || (suppliedProperties != null && suppliedProperties.getProperty(SQLServerDriverStringProperty.APPLICATION_NAME.toString()) == null)) {
if (connectProperties.getProperty(SQLServerDriverStringProperty.APPLICATION_NAME.toString()) == null) {
connectProperties.setProperty(SQLServerDriverStringProperty.APPLICATION_NAME.toString(), SQLServerDriver.constructedAppName);
}
result.connect(connectProperties, null);
Expand Down

0 comments on commit 431de86

Please sign in to comment.