← Back to Pull requests

Upgrade mssql-jdbc to 13.6.2 and add a smoke-test configuration for it #592

Open
unknown opened this pull request with 592 lines diff across 7 files
View on GitHub
unknown unknown commented on Nov 20, 2026 14:21 UTC
Author

Upgrades the bundled Microsoft SQL Server JDBC driver from 10.2.4.jre11 to 13.6.2.jre11, the current stable release. It also adds CI coverage for the driver, which had none.

The configuration commit comes first so the existing smoke tests were run against the old driver through the new configuration before the upgrade.

CI coverage

The existing sqlserver smoke-test configuration connects through jTDS, so mssql-jdbc was never loaded in CI.

  • New alpine-temurin21-sqlserver-mssql-jdbc configuration: the Microsoft driver against SQL Server 2025. It sets database.driver through _MP_DATABASE_DRIVER and uses a jdbc:sqlserver URL with trustServerCertificate=true for the container's self-signed certificate.

  • The existing jTDS configuration moves from SQL Server 2025 to 2022. 2022 is still widely deployed, and this keeps jTDS covered while it heads toward deprecation.
  • There is no 2022 leg for the Microsoft driver: the smoke tests read column metadata with SELECT * ... WHERE 1 = 0 and never reach DatabaseMetaData.getColumns, so they cannot tell the two server versions apart for this driver.

    Driver upgrade

  • The jre11 build is the one Microsoft publishes for Java 11 and later; there are no jre17 or jre21 builds.

  • OSV lists no advisories for either version, so this is a currency upgrade, not a security fix.

  • The driver's runtime dependencies are all optional, so no packages are added.

  • Bouncy Castle is only used for client certificate authentication and Always Encrypted with secure enclaves. The driver's pom names jdk15on artifacts in 10.2.4 and jdk18on in 13.6.2, but both versions call the same classes, so the bundled jdk18on 1.78.1 jars (the driver is built against 1.84) serve both. Claude checked that 10.2.4 and 13.6.2 each load encrypted and unencrypted PEM private keys with only the bundled jars, and did not test the enclave feature, which also needs the unbundled gson.
  • Behavior changes for existing connections

    The driver changelog from 10.2.4 to 13.6.0 lists these changes that could affect existing installations:

  • loginTimeout now defaults to 30 seconds (it was 15), and during login socketTimeout is capped at loginTimeout. A server that accepts the connection but never answers now fails the login at the timeout; before, the login could wait indefinitely.

  • getReference() no longer includes sensitive connection properties (JNDI use only).

  • getProcedures and getFunctions filter on sys.all_objects, and getColumns prefers sp_columns_170 on SQL Server 2025, falling back to sp_columns_100.

  • ActiveDirectoryPassword authentication logs a deprecation warning.
  • encrypt=true has been the default since 10.2.0, so it does not change. The driver's changelog has no entries for 13.6.1 and 13.6.2, so any changes in those two patch releases are unchecked.

    Claude checked

  • ./gradlew --write-verification-metadata sha256 build dist -PdisableSigning=true -Pcoverage=true with a cold cache passed with the new version, and the dist bundles mssql-jdbc-13.6.2.jre11.jar.

  • ci/runtests.sh alpine-temurin21-sqlserver-mssql-jdbc passes all 47 tests against SQL Server 2025 with 10.2.4 (after the first commit) and again with 13.6.2.

  • ci/runtests.sh alpine-temurin21-sqlserver (jTDS) passes all 47 tests against SQL Server 2022.

  • Claude has not run ./gradlew clean build with all tests after splitting the commits, and has not tested against a SQL Server older than 2022.
  • Release Note

    <!-- release-note -->

    Microsoft SQL Server JDBC driver updated from 10.2.4 to 13.6.2

    The Microsoft SQL Server driver (com.microsoft.sqlserver.jdbc.SQLServerDriver) bundled in server-lib/database is now 13.6.2. The jTDS driver, which database = sqlserver still uses by default, is unchanged. The changes below affect connections that use the Microsoft driver, such as a Database Reader or Writer, or the engine's own database when database.driver is set to it.

  • The default loginTimeout is now 30 seconds instead of 15. A server that accepts the connection but never answers now fails the login at the timeout (30 seconds, or the loginTimeout=<seconds> set in the connection URL); before, the login could wait indefinitely.

  • getProcedures and getFunctions now return only stored procedures and functions, and getColumns uses a newer system procedure on SQL Server 2025.

  • ActiveDirectoryPassword authentication now logs a deprecation warning.
  • Encryption was already on by default (encrypt=true) in 10.2.4, so a connection that worked before still needs a trusted certificate or trustServerCertificate=true, as before.
    <!-- /release-note -->

    ---
    🤖 Drafted with Claude Code

    Diff: 592 lines (+444 / -148) across 7 files Reviewer: pacmano1 Review duration: 16328m
    All Vouch review confidence checks passed
    Residual risk 0.39 = Change Risk (0.73) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.73 · 592 lines diff across 7 files
    0.73
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.382
    Shallow Review Depth shallow_review_depth
    0.344
    Sensitive Paths sensitive_paths
    0.073
    Real PR Conversation Timeline
    1 comments
    "Review active on #592"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 46.7% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 73.2% (HIGH) · Higher = larger blast radius
    73.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 39% · Moderate risk
    39%