Skip to content

MS SQL Server: replace old, unmaintained jTDS driver with mssql-jdbc#3403

Merged
jwgmeligmeyling merged 4 commits intoquerydsl:masterfrom
rdicroce:sql-server-driver
Oct 6, 2022
Merged

MS SQL Server: replace old, unmaintained jTDS driver with mssql-jdbc#3403
jwgmeligmeyling merged 4 commits intoquerydsl:masterfrom
rdicroce:sql-server-driver

Conversation

@rdicroce
Copy link
Contributor

@rdicroce rdicroce commented Oct 4, 2022

The jTDS driver has not been updated in many years and is not JDBC 4.2 (Java 8) compliant. Since Microsoft has open-sourced their official JDBC driver, it makes sense to switch to that instead.

This PR is a prerequisite for #3402, as mentioned in that PR.

In case there are any questions about the use of sendTimeAsDatetime=false in the connection string: this is necessary for tests related to java.sql.Time to work, as per footnote 1 in the official MS docs.

@rdicroce
Copy link
Contributor Author

rdicroce commented Oct 5, 2022

The new driver revealed a bug in UtilDateType. java.util.Date internally represents the date as milliseconds UTC, but externally the date is represented in the current timezone. Therefore I have changed UtilDateType to be consistent with TimezoneType.

@jwgmeligmeyling jwgmeligmeyling merged commit 43d4568 into querydsl:master Oct 6, 2022
@jwgmeligmeyling
Copy link
Member

Thanks! 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants