summaryrefslogtreecommitdiff
path: root/mysql-test/r/udf.result
diff options
context:
space:
mode:
authorgkodinov/kgeorge@macbook.gmz <>2007-01-22 12:51:21 +0200
committergkodinov/kgeorge@macbook.gmz <>2007-01-22 12:51:21 +0200
commit9ea140d13ebb5c32b28bec568aebceede53da36e (patch)
treee86a04bb2bb93a9f16e6a4731cc2e20749258fcd /mysql-test/r/udf.result
parent814c1308ea502cd606099b29d103fc5448593693 (diff)
downloadmariadb-git-9ea140d13ebb5c32b28bec568aebceede53da36e.tar.gz
BUG#16590: Optimized does not do right "const" table pre-read
st_table::const_key_parts member is used in determining if certain key has a prefix that is compared to constant(s) in the query predicates. If there's such prefix the index can be used to get the data from the remaining suffix columns in sorted order. However if a field is compared to another field from a "const" table the const_key_parts is not amended. This makes the optimizer unable to detect that the key can be used for sorting and adds an extra filesort. Fixed by updating const_key_parts after reading in the "const" table.
Diffstat (limited to 'mysql-test/r/udf.result')
0 files changed, 0 insertions, 0 deletions