summaryrefslogtreecommitdiff
path: root/sql/records.h
diff options
context:
space:
mode:
authorVarun Gupta <varun.gupta@mariadb.com>2020-07-08 20:43:57 +0530
committerVarun Gupta <varun.gupta@mariadb.com>2020-07-08 20:43:57 +0530
commit7148b846738412517bf4998128ba66a277721630 (patch)
tree1f8fd175dbd5a25da4d96a0a623f867becb2e805 /sql/records.h
parent9701759b3d9ea9fd9bee640ce27171bdd51b7e78 (diff)
downloadmariadb-git-7148b846738412517bf4998128ba66a277721630.tar.gz
MDEV-13694: Wrong result upon GROUP BY with orderby_uses_equalities=on
For the case when the SJM scan table is the first table in the join order, then if we want to do the sorting on the SJM scan table, then we need to make sure that we unpack the values to base table fields in two cases: 1) Reading the SJM table and writing the sort-keys inside the sort-buffer 2) Reading the sorted data from the sort file
Diffstat (limited to 'sql/records.h')
-rw-r--r--sql/records.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/records.h b/sql/records.h
index 04dc06b3c74..852312530db 100644
--- a/sql/records.h
+++ b/sql/records.h
@@ -55,6 +55,7 @@ struct READ_RECORD
TABLE *table; /* Head-form */
Unlock_row_func unlock_row;
Read_func read_record_func;
+ Read_func read_record_func_and_unpack_calls;
THD *thd;
SQL_SELECT *select;
uint ref_length, reclength, rec_cache_size, error_offset;