summaryrefslogtreecommitdiff
path: root/sql/sql_select.h
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2012-01-20 23:54:43 -0800
committerIgor Babaev <igor@askmonty.org>2012-01-20 23:54:43 -0800
commitbb4053afc3cb30c6016530884061d520350004f1 (patch)
tree905dc4e1fa65ccf18004239a27525bde3902f7d0 /sql/sql_select.h
parente4c61d263bd452200440f38284294170246c73b0 (diff)
downloadmariadb-git-bb4053afc3cb30c6016530884061d520350004f1.tar.gz
Fixed LP bug #919427.
The function subselect_uniquesubquery_engine::copy_ref_key has to take into account that when EXPLAIN is processed the array of store_key object created for any TABLE_REF may contain elements for constant items. These items should be ignored by thefunction.
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r--sql/sql_select.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h
index 1d1a023d9cf..79c07e80b25 100644
--- a/sql/sql_select.h
+++ b/sql/sql_select.h
@@ -670,6 +670,7 @@ public:
}
virtual ~store_key() {} /** Not actually needed */
virtual const char *name() const=0;
+ virtual bool store_key_is_const() { return false; }
/**
@brief sets ignore truncation warnings mode and calls the real copy method
@@ -784,6 +785,7 @@ public:
{
}
const char *name() const { return "const"; }
+ bool store_key_is_const() { return true; }
protected:
enum store_key_result copy_inner()