Bug #69985 | Manual does not explain what DO statement really does in one specific case | ||
---|---|---|---|
Submitted: | 11 Aug 2013 17:40 | Modified: | 14 Mar 2018 21:37 |
Reporter: | Valeriy Kravchuk | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: General | Severity: | S4 (Feature request) |
Version: | OS: | Any | |
Assigned to: | CPU Architecture: | Any | |
Tags: | DO |
[11 Aug 2013 17:40]
Valeriy Kravchuk
[12 Aug 2013 2:00]
MySQL Verification Team
mysql> do ' '; Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> do ''; Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> do null; Query OK, 0 rows affected (0.00 sec) mysql> do 0; Query OK, 0 rows affected (0.00 sec) mysql> do '' + 1; Query OK, 0 rows affected (0.00 sec) mysql> do ' '+1; Query OK, 0 rows affected (0.00 sec)
[14 Aug 2013 13:09]
Paul DuBois
I notice that the page says: "you do not care about the result" So, regarding... " It would be nice to read details explanation of how DO really works with all kinds of expressions. " ...the point of DO is to evaluate the expression, not return a meaningful result. I'm not clear why this page should state any more than it does.
[18 Aug 2013 13:15]
Valeriy Kravchuk
This page should explain why/in what cases DO produces warning when "equal" SELECT does NOT produce it. This is important for writing code that uses DO.
[26 Sep 2013 15:30]
Paul DuBois
I remain unpersuaded that the manual should explain anything about this discrepancy in behavior (difference between DO and SELECT as to whether a warning is generated). I am reclassifiying it as a server bug so that it can be triaged and analyzed. For triage/analysis: * If this is determined to be a bug, I'll assume that it will be fixed. * If this is determined to be expected behavior, please provide an explanation for the difference that I can use in the docs to satisfy Valeriy's original request. Thanks.
[14 Mar 2018 21:37]
Roy Lyseng
Posted by developer: Not reproducible as of 5.7.22 and later.