We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please answer these questions before submitting your issue. Thanks!
create table `t0` ( `vkey` integer, `pkey` integer, `c0` integer ); insert into `t0` values (1, 2, 3);
select * from `t0` where (nullif( 3 ^ 10 & (abs(-50)) , round(case when (((`t0`.`c0`) >= 1) or null) then 91 else 86 end) )) in (select `vkey` from `t0` where false);
MySQL and TIDB have different execution results in the above case.
The normal result in MySQL 8:
mysql> select * -> from `t0` -> where (nullif( -> 3 ^ 10 & (abs(-50)) , -> round(case when (((`t0`.`c0`) >= 1) or null) then 91 else 86 end) -> )) in (select `vkey` from `t0` where false); Empty set (0.00 sec)
TiDB should also return empty result, but failed.
In TiDB v8.1.1:
MySQL [test]> select * -> from `t0` -> where (nullif( -> 3 ^ 10 & (abs(-50)) , -> round(case when (((`t0`.`c0`) >= 1) or null) then 91 else 86 end) -> )) in (select `vkey` from `t0` where false); ERROR 1105 (HY000): interface conversion: expression.Expression is *expression.ScalarFunction, not *expression.Column
TiDB crash when execute the same SQL statement.
tidb v8.1.1
The text was updated successfully, but these errors were encountered:
/label affects-8.1
Sorry, something went wrong.
No branches or pull requests
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
MySQL and TIDB have different execution results in the above case.
The normal result in MySQL 8:
TiDB should also return empty result, but failed.
3. What did you see instead (Required)
In TiDB v8.1.1:
TiDB crash when execute the same SQL statement.
4. What is your TiDB version? (Required)
tidb v8.1.1
The text was updated successfully, but these errors were encountered: