Skip to content
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

prepare v0.9.6 #1178

Merged
merged 3 commits into from
Jun 20, 2023
Merged

prepare v0.9.6 #1178

merged 3 commits into from
Jun 20, 2023

Conversation

eeeebbbbrrrr
Copy link
Contributor

@eeeebbbbrrrr eeeebbbbrrrr commented Jun 20, 2023

This is an "out of band" patch release for a v0.9.6, based directly off v0.9.5. This release fixes a bug with Datum to Date conversions. Unfortunately, this bug essentially manifests itself as a Y2K bug where dates prior to 2000-01-01, when used in an Array<Date> fail to convert.

When updating, please make sure to cargo install cargo-pgrx --locked and update your crate dependencies to v0.9.6.

What's Changed

@eeeebbbbrrrr
Copy link
Contributor Author

eeeebbbbrrrr commented Jun 20, 2023

I'm just going to regular-merge this straight into master

@@ -63,7 +63,7 @@ impl TryFrom<pg_sys::Datum> for Date {

#[inline]
fn try_from(datum: pg_sys::Datum) -> Result<Self, Self::Error> {
pg_sys::DateADT::try_from(datum.value() as isize).map(|d| Date(d))
Ok(Date(datum.value() as pg_sys::DateADT))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the reason for this release.

Copy link
Member

@workingjubilee workingjubilee left a comment

Choose a reason for hiding this comment

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

Apparently Ubuntu repos are unavailable but this is probably good if macOS CI passes.

@eeeebbbbrrrr
Copy link
Contributor Author

eeeebbbbrrrr commented Jun 20, 2023

Also passed locally on... wait for it... Ubuntu! But sure, I'll wait out the macos job

@eeeebbbbrrrr eeeebbbbrrrr merged commit 6219d06 into master Jun 20, 2023
@eeeebbbbrrrr eeeebbbbrrrr deleted the v0.9.6-oob branch June 20, 2023 23:44
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.

2 participants