• gkodinov/kgeorge@magare.gmz's avatar
    Bug #30788: Inconsistent retrieval of char/varchar · 2e2ac428
    gkodinov/kgeorge@magare.gmz authored
    Index lookup does not always guarantee that we can
    simply remove the relevant conditions from the WHERE
    clause. Reasons can be e.g. conversion errors, 
    partial indexes etc. 
    The optimizer was removing these parts of the WHERE 
    condition without any further checking.
    This leads to "false positives" when using indexes.
    Fixed by checking the index reference conditions
    (using WHERE) when using indexes with sub-queries.
    2e2ac428
subselect3.result 26.1 KB