~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/join_table.h

  • Committer: Jay Pipes
  • Date: 2009-11-19 18:58:35 UTC
  • mto: (1223.1.2 push)
  • mto: This revision was merged to the branch mainline in revision 1224.
  • Revision ID: jpipes@serialcoder-20091119185835-o59wyfjiet3keutu
Fixes some valgrind warnings regarding conditionals depending on unintialized variables.  Use initializer lists properly, dang it. :) Also, removed the new_Cached_item() function's use_result_field, as this was only used for views and was producing a valgrind warning unnecessarily.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
class JoinTable 
69
69
{
70
70
public:
71
 
  JoinTable() {} /* Remove gcc warning */
 
71
  JoinTable() :
 
72
    table(NULL),
 
73
    keyuse(NULL),
 
74
    select(NULL),
 
75
    select_cond(NULL),
 
76
    quick(NULL),
 
77
    pre_idx_push_select_cond(NULL),
 
78
    on_expr_ref(NULL),
 
79
    cond_equal(NULL),
 
80
    first_inner(NULL),
 
81
    found(false),
 
82
    not_null_compl(false),
 
83
    last_inner(NULL),
 
84
    first_upper(NULL),
 
85
    first_unmatched(NULL),
 
86
    packed_info(0),
 
87
    read_first_record(NULL),
 
88
    next_select(NULL),
 
89
    worst_seeks(0.0),
 
90
    const_keys(0),
 
91
    checked_keys(0),
 
92
    needed_reg(0),
 
93
    keys(0),
 
94
    records(0),
 
95
    found_records(0),
 
96
    read_time(0),
 
97
    dependent(0),
 
98
    key_dependent(0),
 
99
    use_quick(0),
 
100
    index(0),
 
101
    status(0),
 
102
    used_fields(0),
 
103
    used_fieldlength(0),
 
104
    used_blobs(0),
 
105
    type(AM_UNKNOWN),
 
106
    cached_eq_ref_table(0),
 
107
    eq_ref_table(0),
 
108
    not_used_in_distinct(0),
 
109
    sorted(0),
 
110
    limit(0),
 
111
    join(NULL),
 
112
    insideout_match_tab(NULL),
 
113
    insideout_buf(NULL),
 
114
    found_match(false),
 
115
    rowid_keep_flags(0),
 
116
    embedding_map(0)
 
117
  {}
72
118
  Table *table;
73
119
  drizzled::optimizer::KeyUse *keyuse; /**< pointer to first used key */
74
120
  SQL_SELECT *select;