Skip to content

[5.2] [MySQL] Fix encoding of negative fractional TIME values - #1791

Merged
tsegismont merged 1 commit into
5.2from
backport/1772-to-5.2
Nov 12, 2026
Merged

tsegismont merged 1 commit into
5.2from
backport/1772-to-5.2

Conversation

@tsegismont

Copy link
Copy Markdown
Member

Backport of #1772 to 5.2
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 b094a7a into 5.2 Nov 12, 2026
18 checks passed
@tsegismont
tsegismont deleted the backport/1772-to-5.2 branch November 12, 2026 16:01
@tsegismont tsegismont added this to the 5.2.4 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