summaryrefslogtreecommitdiff
path: root/sql/sql_select.h
diff options
context:
space:
mode:
authorAlexander Nozdrin <alik@sun.com>2009-11-06 19:13:33 +0300
committerAlexander Nozdrin <alik@sun.com>2009-11-06 19:13:33 +0300
commit35b00a182e8352a56d1565b7a5e4d5ca9efd8d07 (patch)
tree1856f6f3743fb840ae45d1166df3bffe566031e4 /sql/sql_select.h
parentf56223598ed9092f5fed6a95d80736cfdd5570db (diff)
parent409160e4668faab964892fa9a8082be4482e8dac (diff)
downloadmariadb-git-35b00a182e8352a56d1565b7a5e4d5ca9efd8d07.tar.gz
Manual merge from mysql-trunk-merge.
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r--sql/sql_select.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h
index 76b3d1717f4..e049e4ed765 100644
--- a/sql/sql_select.h
+++ b/sql/sql_select.h
@@ -61,6 +61,8 @@ class store_key;
typedef struct st_table_ref
{
bool key_err;
+ /** True if something was read into buffer in join_read_key. */
+ bool has_record;
uint key_parts; ///< num of ...
uint key_length; ///< length of key_buff
int key; ///< key no
@@ -88,6 +90,11 @@ typedef struct st_table_ref
table_map depend_map; ///< Table depends on these tables.
/* null byte position in the key_buf. Used for REF_OR_NULL optimization */
uchar *null_ref_key;
+ /*
+ The number of times the record associated with this key was used
+ in the join.
+ */
+ ha_rows use_count;
} TABLE_REF;