You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
Search before asking
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?
Code of Conduct
The text was updated successfully, but these errors were encountered: