Skip to content

branch-4.0: [Fix](cast) Fix wrong corner case of datetime conversion about timezone convert #57422 - #57442

Merged
yiguolei merged 1 commit into
branch-4.0from
auto-pick-57422-branch-4.0
Oct 30, 2025
Merged

branch-4.0: [Fix](cast) Fix wrong corner case of datetime conversion about timezone convert #57422#57442
yiguolei merged 1 commit into
branch-4.0from
auto-pick-57422-branch-4.0

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Cherry-picked from #57422

…ne convert (#57422)
before:
```sql
mysql> select cast('9999-12-31 23:59:59.999999 +00:00' as datetime(6));
+----------------------------------------------------------+
| cast('9999-12-31 23:59:59.999999 +00:00' as datetime(6)) |
+----------------------------------------------------------+
| |
+----------------------------------------------------------+
```
now:
```sql
mysql> select cast('9999-12-31 23:59:59.999999 +00:00' as datetime(6));
+----------------------------------------------------------+
| cast('9999-12-31 23:59:59.999999 +00:00' as datetime(6)) |
+----------------------------------------------------------+
| NULL |
+----------------------------------------------------------+
```
@yiguolei

Copy link
Copy Markdown
Contributor

run buildall

@yiguoleiyiguolei reopened this Oct 30, 2025
@yiguolei
yiguolei merged commit bfae221 into branch-4.0Oct 30, 2025
23 of 26 checks passed
@github-actions
github-actionsBot deleted the auto-pick-57422-branch-4.0 branch October 30, 2025 02:51
Sign up for freeto 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

@yiguolei@zclllyybb