-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
bug: result of querying a value from an empty derived table have select case is not consistent with innodb #1784
Labels
A-bug
Something isn't working
Comments
CASE
-> CASE
-> WHEN r.row_id IS NOT NULL THEN
-> r.exchange_rate
-> ELSE
-> 1.0000
-> END AS exchange_rate,
|
create table t1 (age int) ;
select 1 age, sum(age) from ( select * from t1) ta;
|
ACK |
在innodb引擎中的结果 +------------+---------------+---------+-------------+
| inner_code | exchange_rate | balance | std_balance |
+------------+---------------+---------+-------------+
| aaaaa | 1.00000000 | NULL | b |
+------------+---------------+---------+-------------+
在tianmu引擎中的结果 +------------+---------------+---------+-------------+
| inner_code | exchange_rate | balance | std_balance |
+------------+---------------+---------+-------------+
| aaaaa | NULL | NULL | b |
+------------+---------------+---------+-------------+
|
14 tasks
修复完了就关了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you read the Contributing Guidelines on issues?
Please confirm if bug report does NOT exists already ?
Describe the problem
Expected behavior
No response
How To Reproduce
No response
Environment
No response
Are you interested in submitting a PR to solve the problem?
The text was updated successfully, but these errors were encountered: