-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
expression: short-cut expressions cause unnecessary warnings, which even causes errors in update statements. #17725
Closed
Labels
Milestone
Comments
We may also handle mysql> select 0 and 1/0;
+-----------+
| 0 and 1/0 |
+-----------+
| 0 |
+-----------+
1 row in set, 1 warning (0.00 sec)
mysql> show warnings;
+---------+------+---------------+
| Level | Code | Message |
+---------+------+---------------+
| Warning | 1365 | Division by 0 |
+---------+------+---------------+
1 row in set (0.00 sec) |
cc @breeswish @TennyZhuang @skyzh |
fzhedu
changed the title
expression: case when/ if case unnecessary warnings, which even causes errors in update statements.
expression: short-cut expressions cause unnecessary warnings, which even causes errors in update statements.
Sep 3, 2020
I'll check how TiKV will handle case / if later. |
13 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
We may also handle AND and OR.
2. What did you expect to see? (Required)
no warnings like in MySQL
3. What did you see instead (Required)
a warning
4. Affected version (Required)
v4.0.0
5. Root Cause Analysis
The text was updated successfully, but these errors were encountered: