mariadb/mysql-test/suite/vcol
Yuchen Pei 77cf457209
MDEV-37435 Make new vcols created in vcol index substitution inherit name resolution from the select_lex
When a column or alias is the GROUP BY item, and a HAVING conjunct
depends on this column/alias only, the HAVING conjunct could contain
an Item_ref pointing to the GROUP BY Item_field.

If the column/alias happens to the be the expression of a vcol, the
GROUP BY item would be substituted with a newly created vcol
Item_field (MDEV-36132). This causes the Item_ref in HAVING to point
to the new vcol Item_field as well.

Subsequently in the HAVING to WHERE pushdown optimization, the
conjunct is moved to WHERE and fix_fields is called on it, where it
expects the vcol Item_field to have a name resolution context. So we
let the vcol Item_field inherit the context from the select_lex.
2025-09-25 14:49:24 +10:00
..
inc MDEV-28933: Per-table unique FOREIGN KEY constraint names 2025-07-08 12:30:27 +03:00
r MDEV-37435 Make new vcols created in vcol index substitution inherit name resolution from the select_lex 2025-09-25 14:49:24 +10:00
t MDEV-37435 Make new vcols created in vcol index substitution inherit name resolution from the select_lex 2025-09-25 14:49:24 +10:00
disabled.def MDEV-11836 vcol.vcol_keys_myisam fails in buildbot and outside 2017-02-13 18:12:04 +01:00