Skip to content

fix(types): fix parsing interval to support fractional seconds#678

Merged
benjie merged 1 commit intov4from
fix-types-tests
Oct 16, 2020
Merged

fix(types): fix parsing interval to support fractional seconds#678
benjie merged 1 commit intov4from
fix-types-tests

Conversation

@benjie
Copy link
Copy Markdown
Member

@benjie benjie commented Oct 16, 2020

Description

@keithlayne raised a PR #676 noting that fractional seconds were being truncated by PostGraphile. Upon further investigation I determined that the postgres-interval module was doing a lot more than we needed, so I've removed it and replaced it with a lean reimplementation of just the parse function (which should also have better performance, lower memory footprint, and smaller bundle size).

Fixes #676

Performance impact

Ever so slight improvement.

Security impact

None known.

@benjie
Copy link
Copy Markdown
Member Author

benjie commented Oct 16, 2020

I've raised an issue with postgres-interval to see if they'd like the changes upstreamed.

@benjie benjie changed the title fix(types): fix parsing the interval type to support fractional seconds fix(types): fix parsing interval to support fractional seconds Oct 16, 2020
@benjie benjie merged commit 79017c5 into v4 Oct 16, 2020
@benjie benjie deleted the fix-types-tests branch October 16, 2020 12:22
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