~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/mysqlslap.c

MergedĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
830
830
    {
831
831
      if (num_int_cols_index)
832
832
      {
833
 
        if (snprintf(buf, HUGE_STRING_LENGTH, "intcol%d INT(32), INDEX(intcol%d)",
 
833
        if (snprintf(buf, HUGE_STRING_LENGTH, "intcol%d INT, INDEX(intcol%d)",
834
834
                     col_count, col_count) > HUGE_STRING_LENGTH)
835
835
        {
836
836
          fprintf(stderr, "Memory Allocation error in create table\n");
839
839
      }
840
840
      else
841
841
      {
842
 
        if (snprintf(buf, HUGE_STRING_LENGTH, "intcol%d INT(32) ", col_count)
 
842
        if (snprintf(buf, HUGE_STRING_LENGTH, "intcol%d INT ", col_count)
843
843
            > HUGE_STRING_LENGTH)
844
844
        {
845
845
          fprintf(stderr, "Memory Allocation error in create table\n");