Skip to content

Commit

Permalink
fix #5281
Browse files Browse the repository at this point in the history
  • Loading branch information
iamhucong authored and wenshao committed May 21, 2023
1 parent 5385db0 commit 6c493f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1761,7 +1761,7 @@ public PhysicalConnectionInfo createPhysicalConnection() throws SQLException {
if (socketTimeout > 0) {
physicalConnectProperties.put("socketTimeout", Long.toString(TimeUnit.MILLISECONDS.toSeconds(socketTimeout)));
}
} else if (dbTypeName.equals(DbType.sqlserver.name())) {
} else if (DbType.sqlserver.name().equals(dbTypeName)) {
// see https://learn.microsoft.com/en-us/sql/connect/jdbc/setting-the-connection-properties?view=sql-server-ver16
physicalConnectProperties.put("loginTimeout", Long.toString(TimeUnit.MILLISECONDS.toSeconds(connectTimeout)));
if (socketTimeout > 0) {
Expand Down

0 comments on commit 6c493f8

Please sign in to comment.