summaryrefslogtreecommitdiff
path: root/sql/sql_select.h
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2013-10-02 17:59:56 -0700
committerIgor Babaev <igor@askmonty.org>2013-10-02 17:59:56 -0700
commit00816a964f42f65877c9f8982443b2522d09687d (patch)
treec09184fa4404ed321fa32a8c11150d6bb7f6b4f6 /sql/sql_select.h
parentec7da1561e028aac40dee69433113978c982ce84 (diff)
downloadmariadb-git-00816a964f42f65877c9f8982443b2522d09687d.tar.gz
Fixed bug mdev-5028.
Apparently in a general case a short-cut for the distinct optimization is invalid if join buffers are used to join tables after the tables whose values are to selected.
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r--sql/sql_select.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h
index 083302d1e4c..d75be9ae0fe 100644
--- a/sql/sql_select.h
+++ b/sql/sql_select.h
@@ -314,8 +314,9 @@ typedef struct st_join_table {
uint used_null_fields;
uint used_uneven_bit_fields;
enum join_type type;
- bool cached_eq_ref_table,eq_ref_table,not_used_in_distinct;
- bool sorted;
+ bool cached_eq_ref_table,eq_ref_table;
+ bool shortcut_for_distinct;
+ bool sorted;
/*
If it's not 0 the number stored this field indicates that the index
scan has been chosen to access the table data and we expect to scan