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

[Bug] str_to_date output problem #44016

Open
3 tasks done
LiBinfeng-01 opened this issue Nov 15, 2024 · 0 comments · May be fixed by #44018
Open
3 tasks done

[Bug] str_to_date output problem #44016

LiBinfeng-01 opened this issue Nov 15, 2024 · 0 comments · May be fixed by #44018
Assignees

Comments

@LiBinfeng-01
Copy link
Collaborator

Search before asking

  • I had searched in the issues and found no similar issues.

Version

master latest

What's Wrong?

when we use fold constant in fe, it shows different result with be execute directly
mysql [(none)]>select str_to_date('2024-09-06 15:41:08', '%Y-%m-%d %T');
+---------------------------------------------------+
| str_to_date('2024-09-06 15:41:08', '%Y-%m-%d %T') |
+---------------------------------------------------+
| 2024-09-06 15:41:08 |
+---------------------------------------------------+
1 row in set (0.00 sec)
mysql [(none)]>set DEBUG_SKIP_FOLD_CONSTANT = true;
Query OK, 0 rows affected (0.00 sec)
mysql [(none)]>select str_to_date('2024-09-06 15:41:08', '%Y-%m-%d %T');
+---------------------------------------------------+
| str_to_date('2024-09-06 15:41:08', '%Y-%m-%d %T') |
+---------------------------------------------------+
| 2024-09-06 15:41:08.000000 |
+---------------------------------------------------+
1 row in set (0.03 sec)

What You Expected?

same behavior of fe and be execute

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@LiBinfeng-01 LiBinfeng-01 self-assigned this Nov 15, 2024
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 a pull request may close this issue.

1 participant