Skip to content

Commit d919144

Browse files
committed
Changed default user agent string to include FE version
1 parent 7518254 commit d919144

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ public String toString() {
314314
private static final Lock sLock = new ReentrantLock();
315315

316316
static final String USER_AGENT_TEMPLATE = "%s|%s|%s|%s|%s|%s|%s";
317+
static final String USER_AGENT_EXT_VERSION_AND_DRIVER_NAME = "1|MS-JDBC";
317318
static final String userAgentStr;
318319

319320
static {
@@ -333,7 +334,7 @@ static String getUserAgent() {
333334
getRuntimeDetails()
334335
);
335336
} catch(Exception e) {
336-
return "MS-JDBC";
337+
return USER_AGENT_EXT_VERSION_AND_DRIVER_NAME;
337338
}
338339
}
339340

0 commit comments

Comments
 (0)