~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/create_field.cc

  • Committer: Brian Aker
  • Date: 2010-12-20 19:20:57 UTC
  • mto: This revision was merged to the branch mainline in revision 2016.
  • Revision ID: brian@tangent.org-20101220192057-1ch4b9uo008d8rje
Merge in additional fixes for sign, plus alter table, plus TIME on
processlist.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
#include "drizzled/temporal.h"
48
48
#include "drizzled/item/string.h"
49
49
 
 
50
#include "drizzled/display.h"
 
51
 
50
52
#include <algorithm>
51
53
 
52
54
using namespace std;
394
396
  return false; /* success */
395
397
}
396
398
 
 
399
std::ostream& operator<<(std::ostream& output, const CreateField &field)
 
400
{
 
401
  output << "CreateField:(";
 
402
  output <<  field.field_name;
 
403
  output << ", ";
 
404
  output << drizzled::display::type(field.type());
 
405
  output << ", { ";
 
406
 
 
407
  if (field.flags & NOT_NULL_FLAG)
 
408
    output << " NOT_NULL";
 
409
 
 
410
  if (field.flags & PRI_KEY_FLAG)
 
411
    output << ", PRIMARY KEY";
 
412
 
 
413
  if (field.flags & UNIQUE_KEY_FLAG)
 
414
    output << ", UNIQUE KEY";
 
415
 
 
416
  if (field.flags & MULTIPLE_KEY_FLAG)
 
417
    output << ", MULTIPLE KEY";
 
418
 
 
419
  if (field.flags & BLOB_FLAG)
 
420
    output << ", BLOB";
 
421
 
 
422
  if (field.flags & UNSIGNED_FLAG)
 
423
    output << ", UNSIGNED";
 
424
 
 
425
  if (field.flags & BINARY_FLAG)
 
426
    output << ", BINARY";
 
427
  output << "}, ";
 
428
  if (field.field)
 
429
    output << *field.field;
 
430
  output << ")";
 
431
 
 
432
  return output;  // for multiple << operators.
 
433
}
 
434
 
397
435
} /* namespace drizzled */