Skip to content

Commit 850675e

Browse files
Imrpovement | MSI support minor alignments and adjustments (#915)
1 parent ec052ca commit 850675e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/main/java/com/microsoft/sqlserver/jdbc/SQLServerDriver.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,8 @@ public final class SQLServerDriver implements java.sql.Driver {
480480
SQLServerDriverStringProperty.AUTHENTICATION.getDefaultValue(), false,
481481
new String[] {SqlAuthentication.NotSpecified.toString(), SqlAuthentication.SqlPassword.toString(),
482482
SqlAuthentication.ActiveDirectoryPassword.toString(),
483-
SqlAuthentication.ActiveDirectoryIntegrated.toString()}),
483+
SqlAuthentication.ActiveDirectoryIntegrated.toString(),
484+
SqlAuthentication.ActiveDirectoryMSI.toString()}),
484485
new SQLServerDriverPropertyInfo(SQLServerDriverIntProperty.SOCKET_TIMEOUT.toString(),
485486
Integer.toString(SQLServerDriverIntProperty.SOCKET_TIMEOUT.getDefaultValue()), false, null),
486487
new SQLServerDriverPropertyInfo(SQLServerDriverBooleanProperty.FIPS.toString(),
@@ -504,13 +505,13 @@ public final class SQLServerDriver implements java.sql.Driver {
504505
SQLServerDriverStringProperty.SSL_PROTOCOL.getDefaultValue(), false,
505506
new String[] {SSLProtocol.TLS.toString(), SSLProtocol.TLS_V10.toString(),
506507
SSLProtocol.TLS_V11.toString(), SSLProtocol.TLS_V12.toString()}),
507-
new SQLServerDriverPropertyInfo(SQLServerDriverStringProperty.MSI_CLIENT_ID.toString(),
508-
SQLServerDriverStringProperty.MSI_CLIENT_ID.getDefaultValue(), false, null),
509508
new SQLServerDriverPropertyInfo(SQLServerDriverIntProperty.CANCEL_QUERY_TIMEOUT.toString(),
510509
Integer.toString(SQLServerDriverIntProperty.CANCEL_QUERY_TIMEOUT.getDefaultValue()), false, null),
511510
new SQLServerDriverPropertyInfo(SQLServerDriverBooleanProperty.USE_BULK_COPY_FOR_BATCH_INSERT.toString(),
512511
Boolean.toString(SQLServerDriverBooleanProperty.USE_BULK_COPY_FOR_BATCH_INSERT.getDefaultValue()),
513-
false, TRUE_FALSE),};
512+
false, TRUE_FALSE),
513+
new SQLServerDriverPropertyInfo(SQLServerDriverStringProperty.MSI_CLIENT_ID.toString(),
514+
SQLServerDriverStringProperty.MSI_CLIENT_ID.getDefaultValue(), false, null),};
514515

515516
/**
516517
* Properties that can only be set by using Properties. Cannot set in connection string

0 commit comments

Comments
 (0)