Skip to content

Try a simpler approach for handling Timestamps on SQL Server #6038

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

Open
wants to merge 1 commit into
base: release24.7-SNAPSHOT
Choose a base branch
from

Conversation

labkey-adam
Copy link
Contributor

Rationale

More research in the SQL Server JDBC issues list suggests a possible approach for sending Timestamps via JDBC using a standard string format that doesn't vary based on language settings. Turns out the 12.6.3 version of the JDBC driver introduced an issue where the driver failed to parse timestamps returned from the database when parameters were sent setting the explicit Types.TIMESTAMP type. (Ironically, the bug was introduced as part of the fix to a Timestamp + stored procedure issue that I filed earlier with the team.) That forced us to always omit the type when setting Timestamp parameters in our statement wrapper, which lead to the need to vary the timestamp format we sent based on locale. The latest (12.8.1) version fixes this issue, so I'm hopeful we can return to setting the explicit type which seems to then universally support the ISO-style format.

Related Pull Requests

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.

1 participant