-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
[5.5] Operator optional #22361
[5.5] Operator optional #22361
Conversation
Operator optional and fix type "time mysql" DOC mysql: https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_time TIME(expr) Extracts the time part of the time or datetime expression expr and returns it as a string. This function is unsafe for statement-based replication. A warning is logged if you use this function when binlog_format is set to STATEMENT.
Why was this merged ...
|
|
How could you make the mistake? Because here for me it does not happen. As for owWhereTime, it was forgetting to change "@param int $ value" as it is the only thing that needed to be changed. Do you find it easier to reverse the situation instead of actually fixing the problems? |
Could you tell me which problems you were fixing? This PR only made the operator optional, if I read the code correct. There are no tests provided or anything that shows which problems existed previously. The problem my revert fixes is the changes that causes warnings due to changed method signatures in the middle of a 5.5 release. If you really need these changes, redo them against the 5.6/master branch and provide tests. |
TIME(expr) Extracts the time part of the time or datetime expression expr and returns it as a string. |
You've done three things in this PR.
Since the first point is a huge problem I argue that the entire PR should be reverted, and you're welcome to submit a new working PR that isn't breaking existing code, that is a working fix for the things you want to change. |
I ask again, if it's breaking because you did not correct the problem instead of going back? |
I do not understand your question. It is breaking because you changed a method signature in the middle of the 5.5 lifecycle. It would have been better if this were targetting 5.6 instead. I argue that since this is a breaking change, it should be reverted. I am correcting the problem, by suggesting a revert of these changes, so the code goes back to the previous state. We can then try again to implement these things in a non-breaking way. |
Ok! As you preferred! Thanks! |
@emtudo just point it to master branch. |
Operator optional and fix type "time mysql"
DOC mysql: https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_time
TIME(expr)
Extracts the time part of the time or datetime expression expr and returns it as a string.
This function is unsafe for statement-based replication. A warning is logged if you use this function when binlog_format is set to STATEMENT.