~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/field.h

  • Committer: Brian Aker
  • Date: 2008-07-11 00:33:12 UTC
  • mfrom: (51.1.83 remove-dbug)
  • Revision ID: brian@tangent.org-20080711003312-f4sf5n2z3obor1u8
Comming Jay's merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
492
492
      ((flags >> COLUMN_FORMAT_FLAGS) & COLUMN_FORMAT_MASK);
493
493
  }
494
494
 
495
 
  /* Print field value into debug trace, in NULL-aware way. */
496
 
  void dbug_print()
497
 
  {
498
 
    if (is_real_null())
499
 
      fprintf(DBUG_FILE, "NULL");
500
 
    else
501
 
    {
502
 
      char buf[256];
503
 
      String str(buf, sizeof(buf), &my_charset_bin);
504
 
      str.length(0);
505
 
      String *pstr;
506
 
      pstr= val_str(&str);
507
 
      fprintf(DBUG_FILE, "'%s'", pstr->c_ptr_safe());
508
 
    }
509
 
  }
510
 
 
511
495
  /* Hash value */
512
496
  virtual void hash(ulong *nr, ulong *nr2);
513
497
  friend bool reopen_table(THD *,struct st_table *,bool);