Skip to content

Allow to get timestamps from DATE column (1.4)#541

Merged
staticlibs merged 1 commit intoduckdb:v1.4-andiumfrom
staticlibs:timestamp_from_date_14
Jan 23, 2026
Merged

Allow to get timestamps from DATE column (1.4)#541
staticlibs merged 1 commit intoduckdb:v1.4-andiumfrom
staticlibs:timestamp_from_date_14

Conversation

@staticlibs
Copy link
Collaborator

This is a backport of the PR #539 to v1.4-andium stable branch.

This change fixes the NPE when a timestamp is being requested from the DATE result column.

With it both rs.getTimestamp(idx) and rs.getObject(idx, LocalDateTime.class) should work.

Testing: new tests added to cover java.sql.Timestamp and java.time.LocalDateTime

Fixes: #537

This is a backport of the PR duckdb#539 to `v1.4-andium` stable branch.

This change fixes the NPE when a timestamp is being requested from the
`DATE` result column.

With it both `rs.getTimestamp(idx)` and `rs.getObject(idx,
LocalDateTime.class)` should work.

Testing: new tests added to cover `java.sql.Timestamp` and
`java.time.LocalDateTime`

Fixes: duckdb#537
@staticlibs staticlibs merged commit 69276a0 into duckdb:v1.4-andium Jan 23, 2026
12 checks passed
@staticlibs staticlibs deleted the timestamp_from_date_14 branch January 23, 2026 19:57
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