MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
st_table_ref Struct Reference
Inheritance diagram for st_table_ref:
Collaboration diagram for st_table_ref:

Public Member Functions

bool impossible_null_ref () const
bool has_guarded_conds () const

Public Attributes

bool key_err
bool has_record
uint key_parts
 num of ...
uint key_length
 length of key_buff
int key
 key no
uchar * key_buff
 value to look for with key
uchar * key_buff2
 key_buff+key_length
store_key ** key_copy
Item ** items
 val()'s for each keypart
bool ** cond_guards
key_part_map null_rejecting
table_map depend_map
 Table depends on these tables.
uchar * null_ref_key
ha_rows use_count
bool disable_cache

Additional Inherited Members

- Static Public Member Functions inherited from Sql_alloc
static void * operator new (size_t size) throw ()
static void * operator new[] (size_t size) throw ()
static void * operator new[] (size_t size, MEM_ROOT *mem_root) throw ()
static void * operator new (size_t size, MEM_ROOT *mem_root) throw ()
static void operator delete (void *ptr, size_t size)
static void operator delete (void *ptr, MEM_ROOT *mem_root)
static void operator delete[] (void *ptr, MEM_ROOT *mem_root)
static void operator delete[] (void *ptr, size_t size)

Detailed Description

Definition at line 127 of file sql_select.h.

Member Function Documentation

bool st_table_ref::has_guarded_conds ( ) const
inline

Check if there are triggered/guarded conditions that might be 'switched off' by the subquery code when executing 'Full scan on NULL key' subqueries.

Returns
true if there are guarded conditions, false otherwise

Definition at line 226 of file sql_select.h.

Here is the caller graph for this function:

bool st_table_ref::impossible_null_ref ( ) const
inline
Returns
whether the reference contains NULL values which could never give a match.

Definition at line 204 of file sql_select.h.

Member Data Documentation

bool st_table_ref::has_record

True if something was read into buffer in join_read_key.

Definition at line 131 of file sql_select.h.

store_key** st_table_ref::key_copy

Used to store the value from each keypart field. These values are used for ref access. If key_copy[key_part] == NULL it means that the value is constant and does not need to be reevaluated

Definition at line 142 of file sql_select.h.

key_part_map st_table_ref::null_rejecting

(null_rejecting & (1<<i)) means the condition is '=' and no matching rows will be produced if items[i] IS NULL (see add_not_null_conds())

Definition at line 165 of file sql_select.h.


The documentation for this struct was generated from the following file: