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

repr: make interval output conform to postgres #1413

Closed
wants to merge 1 commit into from

Conversation

benesch
Copy link
Member

@benesch benesch commented Dec 30, 2019

Our previous output style was Postgres-like, but not exactly what
Postgres would output. Also fix a bug where nanoseconds were not being
output correctly; outputting an integer on the right side of a decimal
point requires some care.

Our previous output style was Postgres-like, but not exactly what
Postgres would output. Also fix a bug where nanoseconds were not being
output correctly; outputting an integer on the right side of a decimal
point requires some care.
@benesch
Copy link
Member Author

benesch commented Dec 30, 2019

@sploiselle this is a commit I've had sitting around for a while. I'm worried it might conflict with the interval work you're doing so figured I'd throw it up.

@sploiselle
Copy link
Contributor

@benesch I have this function (and its tests) totally Postgres-ified in my fork, so not a big deal to either merge this and I can rebase atop it, or wait a couple of days for my PR. nbd.

@quodlibetor
Copy link
Contributor

One thing I'd like to see in this is some tests that demonstrate the ways in which subsecond printing was incorrect.

@quodlibetor
Copy link
Contributor

(I can see that this is correct, but would love tests to make sure that we don't mess up in the future.)

@benesch
Copy link
Member Author

benesch commented Jan 8, 2020

Superseded by #1444! Thanks, @sploiselle.

@benesch benesch closed this Jan 8, 2020
@benesch benesch deleted the repr-interval branch January 8, 2020 06:38
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.

None yet

3 participants