Open Tjianke opened 3 years ago
It looks like the similar issues you filed yesterday. Can we merge all of them into one?
It looks like the similar issues you filed yesterday. Can we merge all of them into one?
Well, to be precise, this issue is a compatibility issue with MySQL(sry could not find a compatibility category in issue, so I used bug category instead). Other issues I raised before are actually bugs, where errors should raise.
However, I think it may be more concise if we merge those two bug issues together and left this compatibility issue alone?
Seems like this issue won't have a quick fix, due to the fact that incompatbility raises from this line:
return types.ErrOverflow.GenWithStackByArgs("BIGINT UNSIGNED", fmt.Sprintf("(%s - %s)", b.args[0].String(), b.args[1].String()))
b.args[1].String()
could only return the eventual parsed value of an expression instead of original args in SQL query(what MySQL is returning).
same issue as #11181
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)