summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h15
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);
};