diff options
author | Alexander Nozdrin <alik@sun.com> | 2009-11-06 19:13:33 +0300 |
---|---|---|
committer | Alexander Nozdrin <alik@sun.com> | 2009-11-06 19:13:33 +0300 |
commit | 6b1d61ecb072aab0f04a4dbaa380309a92ee2b10 (patch) | |
tree | 1856f6f3743fb840ae45d1166df3bffe566031e4 /sql/sql_select.h | |
parent | ae71ffc1c88f2e37320dee98824e6d437a083604 (diff) | |
parent | cb0cca865587da1da071a67e0932dcfaa54a4b0c (diff) | |
download | mariadb-git-6b1d61ecb072aab0f04a4dbaa380309a92ee2b10.tar.gz |
Manual merge from mysql-trunk-merge.
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r-- | sql/sql_select.h | 7 |
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; |