Skip to content

Conversation

@chernser
Copy link
Contributor

@chernser chernser commented Sep 4, 2025

Summary

  • Make java.sql.Date & java.sql.Time to be encoded in same way when passed to setObject() methods and setTime(), setDate() methods. Previously last two were converted to unix timestamp value. As time and date do not care timezone and represent only time values no conversion should happen on write.
  • This fixes correct data type in result query.

Closes: #2381
Closes: #2557

Checklist

Delete items not relevant to your PR:

  • Closes #
  • Unit and integration tests covering the common scenarios were added
  • A human-readable description of the changes was provided to include in CHANGELOG
  • For significant changes, documentation in https://github.com/ClickHouse/clickhouse-docs was updated with further explanations or tutorials

@chernser chernser requested a review from mzitnik September 4, 2025 05:00
@chernser chernser marked this pull request as draft September 16, 2025 16:41
@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 2 weeks if no further activity occurs. Please feel free to give a status update or ping for review. Thank you for your contributions!

@github-actions github-actions bot added the stale label Oct 17, 2025
@chernser chernser removed the stale label Oct 17, 2025
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.

Prepared statement IN with Date as value [jdbc-v2] Potentially wrong encoding for java.sql.Date

1 participant