~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/show.cc

  • Committer: Brian Aker
  • Date: 2009-08-18 07:00:39 UTC
  • mto: (1117.1.9 merge)
  • mto: This revision was merged to the branch mainline in revision 1118.
  • Revision ID: brian@gaz-20090818070039-nvbwcw5q67q9vyso
Small cleanup (behavior change to remove auto from output of show create
table)

Show diffs side-by-side

added added

removed removed

Lines of Context:
686
686
      packet->append(file->engine->getName().c_str());
687
687
    }
688
688
 
689
 
    /*
690
 
      Add AUTO_INCREMENT=... if there is an AUTO_INCREMENT column,
691
 
      and NEXT_ID > 1 (the default).  We must not print the clause
692
 
      for engines that do not support this as it would break the
693
 
      import of dumps, but as of this writing, the test for whether
694
 
      AUTO_INCREMENT columns are allowed and wether AUTO_INCREMENT=...
695
 
      is supported is identical, !(file->table_flags() & HA_NO_AUTO_INCREMENT))
696
 
      Because of that, we do not explicitly test for the feature,
697
 
      but may extrapolate its existence from that of an AUTO_INCREMENT column.
698
 
    */
699
 
 
700
 
    if (create_info.auto_increment_value > 1)
701
 
    {
702
 
      packet->append(STRING_WITH_LEN(" AUTO_INCREMENT="));
703
 
      buff= to_string(create_info.auto_increment_value);
704
 
      packet->append(buff.c_str(), buff.length());
705
 
    }
706
 
 
707
689
    if (share->db_create_options & HA_OPTION_PACK_KEYS)
708
690
      packet->append(STRING_WITH_LEN(" PACK_KEYS=1"));
709
691
    if (share->db_create_options & HA_OPTION_NO_PACK_KEYS)