~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/show.cc

  • Committer: Brian Aker
  • Date: 2009-11-11 15:49:59 UTC
  • mto: This revision was merged to the branch mainline in revision 1212.
  • Revision ID: brian@gaz-20091111154959-jqu64e48gp9ig3tp
Updating with my change to to DECIMAL from NEWDECIMAL and Stewart's update
for protobuf to correctly store DECIMAL

Show diffs side-by-side

added added

removed removed

Lines of Context:
2038
2038
 
2039
2039
  decimals= field->decimals();
2040
2040
  switch (field->type()) {
2041
 
  case DRIZZLE_TYPE_NEWDECIMAL:
2042
 
    field_length= ((Field_new_decimal*) field)->precision;
 
2041
  case DRIZZLE_TYPE_DECIMAL:
 
2042
    field_length= ((Field_decimal*) field)->precision;
2043
2043
    break;
2044
2044
  case DRIZZLE_TYPE_LONG:
2045
2045
  case DRIZZLE_TYPE_LONGLONG:
2242
2242
                           column->getLength())) == NULL)
2243
2243
        return NULL;
2244
2244
      break;
2245
 
    case DRIZZLE_TYPE_NEWDECIMAL:
 
2245
    case DRIZZLE_TYPE_DECIMAL:
2246
2246
      if (!(item= new Item_decimal((int64_t) column->getValue(), false)))
2247
2247
      {
2248
2248
        return(0);