Skip to content

java.sql.Timestamp object gets serialized with an extra comma on Linux #521

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

Closed
lucyzhang929 opened this issue Nov 17, 2022 · 0 comments · Fixed by #552
Closed

java.sql.Timestamp object gets serialized with an extra comma on Linux #521

lucyzhang929 opened this issue Nov 17, 2022 · 0 comments · Fixed by #552
Assignees
Milestone

Comments

@lucyzhang929
Copy link
Contributor

lucyzhang929 commented Nov 17, 2022

When using java.sql.Timestamp, AddProductColumnTypes test fails 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"

System.Private.CoreLib: Exception while executing function: Functions.AddProductColumnTypes. Microsoft.Azure.WebJobs.Host: Error while handling parameter _binder after function returned:. Microsoft.Azure.WebJobs.Extensions.Sql: Unexpected error upserting rows. Core Microsoft SqlClient Data Provider: The conversion of a nvarchar data type to a datetime data type resulted in an out-of-range value.

This depends on the Java worker adding support for customizing the GSON serializer: Azure/azure-functions-java-worker#424.

@lucyzhang929 lucyzhang929 self-assigned this Nov 17, 2022
@lucyzhang929 lucyzhang929 reopened this Dec 8, 2022
@lucyzhang929 lucyzhang929 added this to the Input/Output Bindings GA milestone Dec 8, 2022
@lucyzhang929 lucyzhang929 changed the title AddProductColumnTypesTest failing on linux pipeline for Java java.sql.Timestamp object gets serialized with an extra comma on Linux Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants