Skip to content

[4.x] [MySQL] Fix encoding of negative fractional TIME values - #1792

Merged
tsegismont merged 1 commit into
4.xfrom
backport/1772-to-4.x
Nov 12, 2026
Merged

tsegismont merged 1 commit into
4.xfrom
backport/1772-to-4.x

Conversation

@tsegismont

Copy link
Copy Markdown
Member

Backport of #1772 to 4.x
Cherry-picked commit: 39488ae

Duration.getSeconds() is floored, so borrowing a second for the
fraction wrote second = -1 whenever the floored value was a whole
minute, and MySQL stored -59.5 seconds as zero.

Assisted-by: Anthropic Claude (claude-opus-5-5)

Signed-off-by: Sharang Gupta <sharang@sharanggupta.dev>
(cherry picked from commit 39488ae)
Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
@tsegismont
tsegismont merged commit 9aed2ad into 4.x Nov 12, 2026
34 of 35 checks passed
@tsegismont
tsegismont deleted the backport/1772-to-4.x branch November 12, 2026 16:03
@tsegismont tsegismont added this to the 4.5.37 milestone Nov 13, 2026
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