diff options
author | Varun Gupta <varun.gupta@mariadb.com> | 2020-03-06 11:51:59 +0530 |
---|---|---|
committer | Varun Gupta <varun.gupta@mariadb.com> | 2020-03-06 11:51:59 +0530 |
commit | 4215de08b374b1f593671683fbf7e4c26467a63f (patch) | |
tree | 76b48f8346d9067eeeaa60ba466d2d48b54b073a /sql/sql_class.h | |
parent | 7d29dd3e8c92edf8425d686d2792a45822b9eb6e (diff) | |
download | mariadb-git-10.5-mdev6915-ext.tar.gz |
Fix #9 Performance regression10.5-mdev6915-ext
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index 1413c360b61..9862ced5728 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -6284,8 +6284,23 @@ struct SORT_FIELD_ATTR /* Max. length of the original value, in bytes */ uint original_length; + /* + FALSE : for packable datatypes like CHAR, VARCHAR and BLOBS + TRUE : otherwise + */ + bool fixed_type; + /* + TRUE : if the item or field is NULLABLE + FALSE : otherwise + */ + bool maybe_null; + CHARSET_INFO *cs; uint pack_sort_string(uchar *to, const LEX_CSTRING &str, CHARSET_INFO *cs) const; + int compare_packed_fixed_size_vals(uchar *a, size_t *a_len, + uchar *b, size_t *b_len); + int compare_packed_varstrings(uchar *a, size_t *a_len, + uchar *b, size_t *b_len); }; |