~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/create_field.cc

  • Committer: Stewart Smith
  • Date: 2009-09-23 01:22:47 UTC
  • mto: This revision was merged to the branch mainline in revision 1145.
  • Revision ID: stewart@flamingspork.com-20090923012247-37wvbe2bftkxtmg8
Fix maybe_null for CreateField created for temp table in item/sum.cc (Item_sum_distinct)
which was causing valgrind warning on linux x86 and sum_distinct test failures on
Solaris sparc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
152
152
void CreateField::init_for_tmp_table(enum_field_types sql_type_arg,
153
153
                                     uint32_t length_arg,
154
154
                                     uint32_t decimals_arg,
155
 
                                     bool)
 
155
                                     bool maybe_null)
156
156
{
157
157
  field_name= "";
158
158
  sql_type= sql_type_arg;
162
162
  charset= &my_charset_bin;
163
163
  decimals= decimals_arg & FIELDFLAG_MAX_DEC;
164
164
  pack_flag= 0;
 
165
 
 
166
  if (! maybe_null)
 
167
    flags= NOT_NULL_FLAG;
 
168
  else
 
169
    flags= 0;
165
170
}
166
171
 
167
172
bool CreateField::init(Session *,