Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Oct 6, 2022

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! 👍🏻

@rdicroce rdicroce deleted the sql-server-driver branch October 10, 2022 18:43
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