Skip to content

feat: merge my pg_interval_2 fork into mainline#78

Open
sunng87 wants to merge 34 commits intopiperRyan:masterfrom
sunng87:master
Open

feat: merge my pg_interval_2 fork into mainline#78
sunng87 wants to merge 34 commits intopiperRyan:masterfrom
sunng87:master

Conversation

@sunng87
Copy link
Collaborator

@sunng87 sunng87 commented Feb 5, 2026

This fork includes features:

  • Postgres verbose encoding/decoding
  • Parse sql format
  • Error type update

sunng87 and others added 29 commits January 21, 2026 16:03
feat: add parse_sql for interval
feat: implement Error for ParseError
feat: resolve several postgres style roundtrip issues
@sunng87 sunng87 requested a review from piperRyan February 5, 2026 04:02
false,
);
format!("{} {:+} {}", year_month, self.days, time_interval)
let has_negative = self.years < 0
Copy link
Owner

@piperRyan piperRyan Feb 14, 2026

Choose a reason for hiding this comment

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

suggestion: let's introduce a helper function like is_zeroed to make this a bit and other sections a bit more readable.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated to reuse some helper functions. Also cache the results to avoid duplicated compute.

@sunng87
Copy link
Collaborator Author

sunng87 commented Mar 12, 2026

Sorry for massive delay. I have updated patch to address comments and conflicts.

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