~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzletest.cc

  • Committer: Monty Taylor
  • Date: 2011-02-21 18:47:31 UTC
  • mto: This revision was merged to the branch mainline in revision 2190.
  • Revision ID: mordred@inaugust.com-20110221184731-j4rghix4989zn9za
Getting closer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4701
4701
      {
4702
4702
        if (boost::lexical_cast<uint32_t>(row[i]))
4703
4703
        {
4704
 
          append_field(ds, i, column, "YES", 3, false);
 
4704
          if ((drizzle_column_flags(column) & DRIZZLE_COLUMN_FLAGS_UNSIGNED))
 
4705
          {
 
4706
            append_field(ds, i, column, "YES", 3, false);
 
4707
          }
 
4708
          else
 
4709
          {
 
4710
            append_field(ds, i, column, "TRUE", 4, false);
 
4711
          }
4705
4712
        }
4706
4713
        else
4707
4714
        {
4708
 
          append_field(ds, i, column, "NO", 2, false);
 
4715
          if ((drizzle_column_flags(column) & DRIZZLE_COLUMN_FLAGS_UNSIGNED))
 
4716
          {
 
4717
            append_field(ds, i, column, "NO", 2, false);
 
4718
          }
 
4719
          else
 
4720
          {
 
4721
            append_field(ds, i, column, "FALSE", 5, false);
 
4722
          }
4709
4723
        }
4710
4724
      }
4711
4725
      else
4756
4770
    ds->append("\t", 1);
4757
4771
    replace_append_uint(ds, drizzle_column_size(column));
4758
4772
    ds->append("\t", 1);
4759
 
    replace_append_uint(ds, drizzle_column_max_size(column));
 
4773
    if (drizzle_column_type(column) == DRIZZLE_COLUMN_TYPE_TINY)
 
4774
    {
 
4775
      replace_append_uint(ds, 1);
 
4776
    }
 
4777
    else
 
4778
    {
 
4779
      replace_append_uint(ds, drizzle_column_max_size(column));
 
4780
    }
4760
4781
    ds->append("\t", 1);
4761
4782
    ds->append((char*) ((drizzle_column_flags(column) & DRIZZLE_COLUMN_FLAGS_NOT_NULL) ? "N" : "Y"), 1);
4762
4783
    ds->append("\t", 1);