diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2011-09-08 19:48:14 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2011-09-08 19:48:14 +0400 |
commit | 5673aa41c3e0fe909689cea70b1ca46f10c38831 (patch) | |
tree | 2aef08e061eb5237b35e7b4b56f424e645383c65 /sql/sql_select.h | |
parent | 528598c478141a6f32738351cb815fc13e229103 (diff) | |
download | mariadb-git-5673aa41c3e0fe909689cea70b1ca46f10c38831.tar.gz |
BUG#830993: Crash in end_read_record with derived table
- Let join buffering code correctly take into account rowids needed
by DuplicateElimination when it is calculating minimum record sizes.
- In JOIN_CACHE::write_record_data, added asserts that prevent us from
writing beyond the end of the buffer.
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r-- | sql/sql_select.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h index 15711dca7b3..676cc7452f4 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -288,7 +288,6 @@ typedef struct st_join_table { ulong max_used_fieldlength; uint used_blobs; uint used_null_fields; - uint used_rowid_fields; uint used_uneven_bit_fields; enum join_type type; bool cached_eq_ref_table,eq_ref_table,not_used_in_distinct; @@ -387,15 +386,6 @@ typedef struct st_join_table { (select->quick->get_type() == QUICK_SELECT_I::QS_TYPE_GROUP_MIN_MAX)); } - bool check_rowid_field() - { - if (keep_current_rowid && !used_rowid_fields) - { - used_rowid_fields= 1; - used_fieldlength+= table->file->ref_length; - } - return test(used_rowid_fields); - } bool is_inner_table_of_semi_join_with_first_match() { return first_sj_inner_tab != NULL; |