Skip to content

Fix AddProductColumnTypesTest for Java #552

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

Merged
merged 2 commits into from
Dec 1, 2022
Merged

Conversation

lucyzhang929
Copy link
Contributor

Fixes: #521

The test was failing on the linux pipeline because the timestamp object being sent to the database had an extra comma between the date and the time.
Mac/Windows: "Dec 1, 2022 11:55:45 AM"
Linux: "Dec 1, 2022, 4:45:52 PM"

Using java.sql.Date instead of java.sql.Timestamp fixes the issue.

Copy link
Contributor

@Charles-Gagnon Charles-Gagnon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be good to add this to the known issues section of the README

@lucyzhang929 lucyzhang929 merged commit 23bd0a3 into main Dec 1, 2022
@lucyzhang929 lucyzhang929 deleted the luczhan/fixjavadatetest branch December 1, 2022 22:29
PBBlox pushed a commit to PBBlox/azure-functions-sql-extension that referenced this pull request Apr 6, 2025
* enable addproductcolumntypestest for java

* add to known issues
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.

java.sql.Timestamp object gets serialized with an extra comma on Linux
3 participants