[CP] fix select * in exists
This commit is contained in:
@ -1673,10 +1673,6 @@ simple_expr collation %prec NEG
|
||||
}
|
||||
| EXISTS select_with_parens
|
||||
{
|
||||
/* mysql 允许 select * from dual 出现在 exists 中, 此处更改 from dual 的 select list 为常量 1 */
|
||||
if (NULL == $2->children_[PARSE_SELECT_FROM]) {
|
||||
$2->value_ = 2;
|
||||
}
|
||||
malloc_non_terminal_node($$, result->malloc_pool_, T_OP_EXISTS, 1, $2);
|
||||
}
|
||||
| MATCH '(' column_list ')' AGAINST '(' search_expr opt_mode_flag ')'
|
||||
|
||||
Reference in New Issue
Block a user