fix user variable not do eval

This commit is contained in:
jh0
2022-04-01 16:52:17 +08:00
committed by LINxiansheng
parent 6cdf0345c6
commit b9fc792163
5 changed files with 34 additions and 13 deletions

View File

@ -19310,17 +19310,19 @@ Outputs & filters:
SQL: Select distinct 1, 1 + (@var:=1) from t7;
===================================
|ID|OPERATOR |NAME|EST. ROWS|COST|
-----------------------------------
|0 |TABLE SCAN|t7 |1 |36 |
===================================
======================================
|ID|OPERATOR |NAME|EST. ROWS|COST|
--------------------------------------
|0 |HASH DISTINCT| |1 |122 |
|1 | TABLE SCAN |t7 |100 |88 |
======================================
Outputs & filters:
-------------------------------------
0 - output([?], [?]), filter(nil),
0 - output([?], [? + (T_OP_ASSIGN, 'var', ?)]), filter(nil),
distinct([? + (T_OP_ASSIGN, 'var', ?)])
1 - output([? + (T_OP_ASSIGN, 'var', ?)]), filter(nil),
access([t7.c1]), partitions(p0),
limit(1), offset(nil),
is_index_back=false,
range_key([t7.c1]), range(MIN ; MAX)always true