• Varun Gupta's avatar
    MDEV-17606: Query returns wrong results (while using CHARACTER SET utf8) · 37cb7a00
    Varun Gupta authored
    The issue here was that the left expr and right expr of the ANY subquery
    had different character sets, so we were converting the left expr to utf8 character set.
    So when this conversion was happening we were actually converting the item inside the cache,
    it looked like <cache>(convert(t1.l1 using utf8)), which is incorrect.
    To fix this problem we are going to store the reference of the left expr and convert that
    to utf8 character set, it would look like convert(<cache>(`test`.`t1`.`l1`) using utf8)
    37cb7a00
subselect4.result 100 KB