summaryrefslogtreecommitdiff
path: root/sql/sql_select.h
diff options
context:
space:
mode:
authorVarun Gupta <varun.gupta@mariadb.com>2020-10-23 17:51:59 +0530
committerVarun Gupta <varun.gupta@mariadb.com>2020-10-23 18:23:12 +0530
commitad6fef6266e973bf2ab6a58524058aefc17da368 (patch)
treef8179d794a02196228a90bfd2e233ac1ee361252 /sql/sql_select.h
parent5a9484b78438775f431601a1fc2b302e01e35882 (diff)
downloadmariadb-git-10.3-varun.tar.gz
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r--sql/sql_select.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h
index df9c9b2eb0e..17b05315ecc 100644
--- a/sql/sql_select.h
+++ b/sql/sql_select.h
@@ -178,6 +178,11 @@ typedef struct st_table_ref
*/
bool disable_cache;
+ /*
+ The number of NOT NULL keyparts
+ */
+ uint not_null_keyparts;
+
bool tmp_table_index_lookup_init(THD *thd, KEY *tmp_key, Item_iterator &it,
bool value, uint skip= 0);
bool is_access_triggered();
@@ -611,6 +616,7 @@ typedef struct st_join_table {
bool hash_join_is_possible();
int make_scan_filter();
bool is_ref_for_hash_join() { return is_hash_join_key_no(ref.key); }
+ bool is_eq_ref_access();
KEY *get_keyinfo_by_key_no(uint key)
{
return (is_hash_join_key_no(key) ? hj_key : table->key_info+key);