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
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
DROPTABLE IF EXISTS t0;
CREATETABLEt0(c0 INT);
INSERT INTO t0 VALUES (1);
SELECT c0 FROM t0 WHERE POW(0, -1);
SHOW WARNINGS;
2. What did you expect to see? (Required)
SHOW WARNINGS should return the error message as following.
+-------+------+-----------------------------------------------+
| Level | Code | Message |
+-------+------+-----------------------------------------------+
| Error | 1690 | DOUBLE value is out of range in'pow(0,-(1))' |
+-------+------+-----------------------------------------------+
I've noticed that there are two similar issues #33232 and #31719, where the SHOW WARNINGS statement fails to return the error message when the error happened in a function.
Does the same reason cause these problems?
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
SHOW WARNINGS should return the error message as following.
3. What did you see instead (Required)
SHOW WARNINGS returns an empty set
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: