~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/create_field.cc

  • Committer: Nathan Williams
  • Date: 2009-06-23 21:20:32 UTC
  • mto: This revision was merged to the branch mainline in revision 1082.
  • Revision ID: nathanlws@gmail.com-20090623212032-3hzm3n6jnh3r2b0u
First few changes at converting cmin to std::min.
Small style edits around conversions as well.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
#include "drizzled/field/datetime.h"
44
44
#include "drizzled/field/varstring.h"
45
45
 
 
46
#include <algorithm>
 
47
 
 
48
using namespace std;
 
49
 
 
50
 
46
51
/** Create a field suitable for create of table. */
47
52
CreateField::CreateField(Field *old_field, Field *orig_field)
48
53
{
300
305
          and 19 as length of 4.1 compatible representation.
301
306
        */
302
307
        length= ((length+1)/2)*2; /* purecov: inspected */
303
 
        length= cmin(length, (uint32_t)MAX_DATETIME_COMPRESSED_WIDTH); /* purecov: inspected */
 
308
        length= min(length, (uint32_t)MAX_DATETIME_COMPRESSED_WIDTH); /* purecov: inspected */
304
309
      }
305
310
      flags|= UNSIGNED_FLAG;
306
311
      if (fld_default_value)