~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_show.cc

  • Committer: Jay Pipes
  • Date: 2008-09-26 11:21:06 UTC
  • mfrom: (407 drizzle)
  • mto: This revision was merged to the branch mainline in revision 408.
  • Revision ID: jay@mysql.com-20080926112106-hpr4733uh22a5grz
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
3025
3025
    field_length= ((Field_new_decimal*) field)->precision;
3026
3026
    break;
3027
3027
  case DRIZZLE_TYPE_TINY:
3028
 
  case DRIZZLE_TYPE_SHORT:
3029
3028
  case DRIZZLE_TYPE_LONG:
3030
3029
  case DRIZZLE_TYPE_LONGLONG:
3031
3030
    field_length= field->max_display_length() - 1;
3851
3850
    switch (fields_info->field_type) {
3852
3851
    case DRIZZLE_TYPE_TINY:
3853
3852
    case DRIZZLE_TYPE_LONG:
3854
 
    case DRIZZLE_TYPE_SHORT:
3855
3853
    case DRIZZLE_TYPE_LONGLONG:
3856
3854
      if (!(item= new Item_return_int(fields_info->field_name,
3857
3855
                                      fields_info->field_length,
4151
4149
    }
4152
4150
    List_iterator_fast<Item> it(sel->item_list);
4153
4151
    if (!(transl=
4154
 
          (Field_translator*)(thd->stmt_arena->
4155
 
                              alloc(sel->item_list.elements *
 
4152
          (Field_translator*)(thd->alloc(sel->item_list.elements *
4156
4153
                                    sizeof(Field_translator)))))
4157
4154
    {
4158
4155
      return(1);