summaryrefslogtreecommitdiff
path: root/sql/key.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-02-02 12:44:01 +0100
committerSergei Golubchik <serg@mariadb.org>2017-02-13 18:12:05 +0100
commit460ff39871d6554ec17714a79a174cf8f80f7817 (patch)
tree293c2313372dbe4936b359b79dfcfbc64fa9d788 /sql/key.cc
parent3cae225b0ff8751a5708bfe4ab0cf52b1badc37e (diff)
downloadmariadb-git-460ff39871d6554ec17714a79a174cf8f80f7817.tar.gz
bugfix: don't calculate vcols if doing keyread
old code didn't calculate vcols that were part of keyread, but calculated other vcols. It was wrong - there was no guarantee that vcol's base columns were part of keyread. Technically it's possible for the vcol not be a part of keyread, but all its base columns being part of keyread. But currently the optimizer doesn't do that, keyread is only used if it covers all columns used in the query. This fixes crashes of vcol.vcol_trigger_sp_innodb
Diffstat (limited to 'sql/key.cc')
0 files changed, 0 insertions, 0 deletions