-
-
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: UNION NULL value returns incorrect result set #1167
Comments
ACK |
In function Engine::Execute, to check the "// 1. all tables are derived and derived tables has no from table,// 2. fields of derived tables has sp", it seems we should use lex->all_selects_list instead of lex->select_lex; |
Check Engine::Execute, the logic to decide the way to mysql or to tianmu, (condition 1 or condition 2) In the two scenario, for scenario 1, the return value is "to mysql" according to the code logic; the table order decides the return values, is the logic correct? @adofsauron |
That should be correct. That's what the comment says
|
crash in this sql: |
|
carsh in this SQL: |
, stoneatom#1168) 1. add system table sys_tianmu.dual which has only and must has one row. 2. in sql parse stage, if the sql is select clause and the related tables's storage is tianmu, if the select clause without from clause, rewrite the sql, add from clause "from sys_tianmu.dual" 3. in mysql_test, the system table is initialized in install.db directory,and copy to the mysql_test base_dir, if the file is symbol link, the destination file will be regular file, so change the Path.pm to copy symbol link file;
, stoneatom#1168) 1. add system table sys_tianmu.dual which has only and must has one row. 2. in sql parse stage, if the sql is select clause and the related tables's storage is tianmu, if the select clause without from clause, rewrite the sql, add from clause "from sys_tianmu.dual" 3. in mysql_test, the system table is initialized in install.db directory,and copy to the mysql_test base_dir, if the file is symbol link, the destination file will be regular file, so change the Path.pm to copy symbol link file;
, stoneatom#1168) 1. add system table sys_tianmu.dual which has only and must has one row. 2. in sql parse stage, if the sql is select clause and the related tables's storage is tianmu, if the select clause without from clause, rewrite the sql, add from clause "from sys_tianmu.dual" 3. in mysql_test, the system table is initialized in install.db directory,and copy to the mysql_test base_dir, if the file is symbol link, the destination file will be regular file, so change the Path.pm to copy symbol link file;
, stoneatom#1168) 1. add system table sys_tianmu.dual which has only and must has one row. 2. in sql parse stage, if the sql is select clause and the related tables's storage is tianmu, if the select clause without from clause, rewrite the sql, add from clause "from sys_tianmu.dual" 3. in mysql_test, the system table is initialized in install.db directory,and copy to the mysql_test base_dir, if the file is symbol link, the destination file will be regular file, so change the Path.pm to copy symbol link file;
, stoneatom#1168) 1. add system table sys_tianmu.dual which has only and must has one row. 2. in sql parse stage, if the sql is select clause and the related tables's storage is tianmu, if the select clause without from clause, rewrite the sql, add from clause "from sys_tianmu.dual" 3. in mysql_test, the system table is initialized in install.db directory,and copy to the mysql_test base_dir, if the file is symbol link, the destination file will be regular file, so change the Path.pm to copy symbol link file;
, stoneatom#1168) 1. add system table sys_tianmu.dual which has only and must has one row. 2. in sql parse stage, if the sql is select clause and the related tables's storage is tianmu, if the select clause without from clause, rewrite the sql, add from clause "from sys_tianmu.dual" 3. in mysql_test, the system table is initialized in install.db directory,and copy to the mysql_test base_dir, if the file is symbol link, the destination file will be regular file, so change the Path.pm to copy symbol link file;
, stoneatom#1168) 1. add system table sys_tianmu.dual which has only and must has one row. 2. in sql parse stage, if the sql is select clause and the related tables's storage is tianmu, if the select clause without from clause, rewrite the sql, add from clause "from sys_tianmu.dual" 3. in mysql_test, the system table is initialized in install.db directory,and copy to the mysql_test base_dir, if the file is symbol link, the destination file will be regular file, so change the Path.pm to copy symbol link file;
, stoneatom#1168) 1. add system table sys_tianmu.dual which has only and must has one row. 2. in sql parse stage, if the sql is select clause and the related tables's storage is tianmu, if the select clause without from clause, rewrite the sql, add from clause "from sys_tianmu.dual" 3. in mysql_test, the system table is initialized in install.db directory,and copy to the mysql_test base_dir, if the file is symbol link, the destination file will be regular file, so change the Path.pm to copy symbol link file;
, stoneatom#1168) 1. add system table sys_tianmu.dual which has only and must has one row. 2. in sql parse stage, if the sql is select clause and the related tables's storage is tianmu, if the select clause without from clause, rewrite the sql, add from clause "from sys_tianmu.dual" 3. in mysql_test, the system table is initialized in install.db directory,and copy to the mysql_test base_dir, if the file is symbol link, the destination file will be regular file, so change the Path.pm to copy symbol link file;
, stoneatom#1168) 1. add system table sys_tianmu.dual which has only and must has one row. 2. in sql parse stage, if the sql is select clause and the related tables's storage is tianmu, if the select clause without from clause, rewrite the sql, add from clause "from sys_tianmu.dual" 3. in mysql_test, the system table is initialized in install.db directory,and copy to the mysql_test base_dir, if the file is symbol link, the destination file will be regular file, so change the Path.pm to copy symbol link file;
, stoneatom#1168) 1. add system table sys_tianmu.dual which has only and must has one row. 2. in sql parse stage, if the sql is select clause and the related tables's storage is tianmu, if the select clause without from clause, rewrite the sql, add from clause "from sys_tianmu.dual" 3. in mysql_test, the system table is initialized in install.db directory,and copy to the mysql_test base_dir, if the file is symbol link, the destination file will be regular file, so change the Path.pm to copy symbol link file;
, stoneatom#1168) 1. add system table sys_tianmu.dual which has only and must has one row. 2. in sql parse stage, if the sql is select clause and the related tables's storage is tianmu, if the select clause without from clause, rewrite the sql, add from clause "from sys_tianmu.dual" 3. in mysql_test, the system table is initialized in install.db directory,and copy to the mysql_test base_dir, if the file is symbol link, the destination file will be regular file, so change the Path.pm to copy symbol link file;
, stoneatom#1168) 1. add system table sys_tianmu.dual which has only and must has one row. 2. in sql parse stage, if the sql is select clause and the related tables's storage is tianmu, if the select clause without from clause, rewrite the sql, add from clause "from sys_tianmu.dual" 3. in mysql_test, the system table is initialized in install.db directory,and copy to the mysql_test base_dir, if the file is symbol link, the destination file will be regular file, so change the Path.pm to copy symbol link file;
, stoneatom#1168) 1. add system table sys_tianmu.dual which has only and must has one row. 2. in sql parse stage, if the sql is select clause and the related tables's storage is tianmu, if the select clause without from clause, rewrite the sql, add from clause "from sys_tianmu.dual" 3. in mysql_test, the system table is initialized in install.db directory,and copy to the mysql_test base_dir, if the file is symbol link, the destination file will be regular file, so change the Path.pm to copy symbol link file;
, stoneatom#1168) 1. add system table sys_tianmu.dual which has only and must has one row. 2. in sql parse stage, if the sql is select clause and the related tables's storage is tianmu, if the select clause without from clause, rewrite the sql, add from clause "from sys_tianmu.dual" 3. in mysql_test, the system table is initialized in install.db directory,and copy to the mysql_test base_dir, if the file is symbol link, the destination file will be regular file, so change the Path.pm to copy symbol link file;
, stoneatom#1168) 1. add system table sys_tianmu.dual which has only and must has one row. 2. in sql parse stage, if the sql is select clause and the related tables's storage is tianmu, if the select clause without from clause, rewrite the sql, add from clause "from sys_tianmu.dual" 3. in mysql_test, the system table is initialized in install.db directory,and copy to the mysql_test base_dir, if the file is symbol link, the destination file will be regular file, so change the Path.pm to copy symbol link file;
, stoneatom#1168) 1. add system table sys_tianmu.dual which has only and must has one row. 2. in sql parse stage, if the sql is select clause and the related tables's storage is tianmu, if the select clause without from clause, rewrite the sql, add from clause "from sys_tianmu.dual" 3. in mysql_test, the system table is initialized in install.db directory,and copy to the mysql_test base_dir, if the file is symbol link, the destination file will be regular file, so change the Path.pm to copy symbol link file;
, stoneatom#1168) 1. add system table sys_tianmu.dual which has only and must has one row. 2. in sql parse stage, if the sql is select clause and the related tables's storage is tianmu, if the select clause without from clause, rewrite the sql, add from clause "from sys_tianmu.dual" 3. in mysql_test, the system table is initialized in install.db directory,and copy to the mysql_test base_dir, if the file is symbol link, the destination file will be regular file, so change the Path.pm to copy symbol link file;
, stoneatom#1168) 1. add system table sys_tianmu.dual which has only and must has one row. 2. in sql parse stage, if the sql is select clause and the related tables's storage is tianmu, if the select clause without from clause, rewrite the sql, add from clause "from sys_tianmu.dual" 3. in mysql_test, the system table is initialized in install.db directory,and copy to the mysql_test base_dir, if the file is symbol link, the destination file will be regular file, so change the Path.pm to copy symbol link file;
, stoneatom#1168) 1. add system table sys_tianmu.dual which has only and must has one row. 2. in sql parse stage, if the sql is select clause and the related tables's storage is tianmu, if the select clause without from clause, rewrite the sql, add from clause "from sys_tianmu.dual" 3. in mysql_test, the system table is initialized in install.db directory,and copy to the mysql_test base_dir, if the file is symbol link, the destination file will be regular file, so change the Path.pm to copy symbol link file;
Have you read the Contributing Guidelines on issues?
Please confirm if bug report does NOT exists already ?
Describe the problem
Expected behavior
How To Reproduce
Environment
Are you interested in submitting a PR to solve the problem?
The text was updated successfully, but these errors were encountered: